[LLVMbugs] [Bug 5573] New: Assertion failure in lib/AST/DeclBase.cpp
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Fri Nov 20 12:54:00 PST 2009
http://llvm.org/bugs/show_bug.cgi?id=5573
Summary: Assertion failure in lib/AST/DeclBase.cpp
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Semantic Analyzer
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: cadaker at gmail.com
CC: llvmbugs at cs.uiuc.edu
The following C++ triggers an assertion failure in clang-cc:
class A {
private:
class X;
public:
class X;
class X {};
};
It happens because the second declaration of X is not assigned an
AccessSpecifier in Sema::SetMemberAccessSpecifier. One simple way to fix it is
attached.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list