[LLVMbugs] [Bug 59] New: C++ frontend can crash when compiling virtual base classes

bugzilla-daemon at zion.cs.uiuc.edu bugzilla-daemon at zion.cs.uiuc.edu
Mon Oct 27 09:52:28 PST 2003


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

           Summary: C++ frontend can crash when compiling virtual base
                    classes
           Product: tools
           Version: 1.0
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: llvm-g++
        AssignedTo: sabre at nondot.org
        ReportedBy: sabre at nondot.org


Compiling this testcase:
---
template<class T>
struct super {
  int Y;
  void foo();
};

template <class T> 
struct test : virtual super<int> {};

extern test<int> X;

void foo() {
  X.foo();
}
---

Causes the C++ frontend to crash like this:

ERROR: Type doesn't have size: "struct.test<int>"
2003-10-27-VirtualBaseClassCrash.cpp: In function `void foo()':
2003-10-27-VirtualBaseClassCrash.cpp:14: internal compiler error: in
llvm_type_get_size, at llvm-types.c:70



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