[LLVMbugs] [Bug 14237] New: Clang crashes on invalid code with attributes

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Nov 1 16:16:12 PDT 2012


http://llvm.org/bugs/show_bug.cgi?id=14237

             Bug #: 14237
           Summary: Clang crashes on invalid code with attributes
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Frontend
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: rtrieu at google.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Reproduction:

class Table {
  void Foo(int x) {
    {
      return Foo(Foo(
    }
    return 1;
  }

  void Bar() __attribute__((exclusive_locks_required(something)));
};

It appears the crash happens at clang/lib/Parse/ParseCXXInlineMethods.cpp:374
374        Class.LateParsedDeclarations[i]->ParseLexedMethodDefs();

-- 
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