Skip to content

clang c++ assertion "Invalid opcode for overloaded unary operator" using __real__ on expression of class type #8395

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
efriedma-quic opened this issue Aug 29, 2010 · 1 comment
Labels
bugzilla Issues migrated from bugzilla c++ crash-on-invalid

Comments

@efriedma-quic
Copy link
Collaborator

Bugzilla Link 8023
Resolution FIXED
Resolved on Sep 05, 2010 18:16
Version unspecified
OS Linux
CC @DougGregor

Extended Description

Testcase:
struct A {};
int i = real A();

Crashes with:
clang: SemaOverload.cpp:6754: clang::ExprResult clang::Sema::CreateOverloadedUnaryOp(clang::SourceLocation, unsigned int, const clang::UnresolvedSetImpl&, clang::Expr*): Assertion `Op != OO_None && "Invalid opcode for overloaded unary operator"' failed.

@efriedma-quic
Copy link
Collaborator Author

Fixed in r113124.

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 3, 2021
augusto2112 pushed a commit to augusto2112/llvm-project that referenced this issue Mar 18, 2024
[llvm] Include LLVM_REPOSITORY and LLVM_REVISION in tool version (llvm#84
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugzilla Issues migrated from bugzilla c++ crash-on-invalid
Projects
None yet
Development

No branches or pull requests

1 participant