[LLVMbugs] [Bug 6903] New: Crash on missing double-quote

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Apr 23 10:24:10 PDT 2010


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

           Summary: Crash on missing double-quote
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Keywords: crash-on-invalid
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: dgregor at apple.com
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


terfin:clang dgregor$ cat t.C
void f(...);
struct X {
  X() { f("X::X()\n"); }
  ~X() { f(X::~X()\n"); }
};

terfin:clang dgregor$ clang++ t.C
t.C:4:21: error: missing terminating '"' character
  ~X() { f(X::~X()\n"); }
                    ^
t.C:4:19: error: expected ')'
  ~X() { f(X::~X()\n"); }
                  ^
t.C:4:11: note: to match this '('
  ~X() { f(X::~X()\n"); }
          ^
t.C:6:1: error: expected '}'

^
Assertion failed: (!PP.getSourceManager().isBeforeInTranslationUnit(origLoc,
Tok.getLocation()) && "We consumed more than the cached tokens!"), function
ParseLexedMethodDefs, file
/Users/buildslave/zorg/buildbot/smooshlab/slave/build.clang-x86_64-darwin10-miniswb/clang.src/clang/clang/tools/clang/lib/Parse/ParseCXXInlineMethods.cpp,
line 237.

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