[LLVMbugs] [Bug 692] NEW: llvm-g++ ICEs on illegal code

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sun Jan 15 10:34:27 PST 2006


http://llvm.cs.uiuc.edu/bugs/show_bug.cgi?id=692

           Summary: llvm-g++ ICEs on illegal code
           Product: tools
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: minor
          Priority: P2
         Component: llvm-g++
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: marco-ml at gmx.net


The following illegal C++ code causes an internal compiler error:
--------------------
 void A::foo() {
  bar();
  }
   void A::bar() {
----------------------

output of llvm-g++:
$ llvm-g++ a.cpp
a.cpp:1: error: `A' is not a class-name or namespace-name
a.cpp: In function `void foo()':
a.cpp:2: error: `bar' undeclared (first use this function)
a.cpp:2: error: (Each undeclared identifier is reported only once for each
function it appears in.)
a.cpp: At global scope:
a.cpp:4: error: `A' is not a class-name or namespace-name
a.cpp: In function `void bar()':
a.cpp:4: error: `void bar()' used prior to declaration
a.cpp:4: error: declaration of `void bar()'
a.cpp:4: internal compiler error: tree check: expected class 'd', have 'x'
(error_mark) in location_of, at cp/error.c:1962
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://llvm.cs.uiuc.edu> for instructions.



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




More information about the llvm-bugs mailing list