https://llvm.org/bugs/show_bug.cgi?id=31639
Bug ID: 31639 Summary: diagnose_if triggers an assertion failure when disabling a constructor. Product: clang Version: trunk Hardware: PC OS: All Status: NEW Severity: normal Priority: P Component: C++ Assignee: george.burgess...@gmail.com Reporter: george.burgess...@gmail.com CC: dgre...@apple.com, llvm-bugs@lists.llvm.org Classification: Unclassified Repro: struct Foo { Foo(int I) __attribute__((diagnose_if(I, "oh no", "error"))); }; void bar() { Foo f(1); } Assertion: void clang::Sema::NoteDeletedFunction(clang::FunctionDecl *): Assertion `Decl->isDeleted()' failed. Nothing Bad Happens™ if we compile with a non-asserts build, but the diagnostics are really unhelpful in that case. -- You are receiving this mail because: You are on the CC list for the bug.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs