Skip to content

Clang crash if try to compile class method with __restrict__ and inside enum #27443

@llvmbot

Description

@llvmbot
Bugzilla Link 27069
Version trunk
OS Linux
Attachments source file, generated cpp, generated sh, crash report
Reporter LLVM Bugzilla Contributor
CC @hfinkel,@dobbelaj-snps

Extended Description

Clang crashing with error:
clang-3.9: /mnt/src/llvm/llvm/tools/clang/lib/Sema/SemaOverload.cpp:11829: clang::ExprResult clang::Sema::CreateOverloadedBinOp(clang::SourceLocation, clang::BinaryOperatorKind, const clang::UnresolvedSetImpl&, clang::Expr*, clang::Expr*): Assertion `Result.isInvalid() && "C++ binary operator overloading is missing candidates!"' failed.

Command to build file: clang-3.9 -o test.o -x c++ test.cpp

Attached source file and generated .sh and .cpp

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillaclang:frontendLanguage frontend issues, e.g. anything involving "Sema"confirmedVerified by a second partycrashPrefer [crash-on-valid] or [crash-on-invalid]

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions