[LLVMbugs] [Bug 11852] New: C++ parser crashes

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Jan 24 22:52:44 PST 2012


             Bug #: 11852
           Summary: C++ parser crashes
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Frontend
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: xu_zhong_xing at 163.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

C++ parser crashes on this illegal code:

struct S {
  S() : i(0) {}
  int i;

  void f() {}

void f() {
  S cs;
  int S::*pm = &S::i;
  cs.*pm = 1;

  void S::(*pf)() = S::f;

$ clang -cc1 -x c++ ptr-to-member.cpp

void clang::Parser::DeclaratorScopeObj::EnterDeclaratorScope(): Assertion
`!EnteredScope && "Already entered the scope!"' failed.

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