[LLVMbugs] [Bug 6493] New: LLVM-GCC fails on simple case

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Mar 4 00:27:18 PST 2010


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

           Summary: LLVM-GCC fails on simple case
           Product: new-bugs
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P5
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: zhousheng00 at gmail.com
                CC: llvmbugs at cs.uiuc.edu


Seems operation on argument of 2d array of templated class will fail llvm-gcc

for example:

template <int N>
class T {
public:
  int V;
};

T<4> test(T<4> a[4][8]) {
  return a[3][3];
}


Tested with ToT LLVM-GCC, got

test.cpp: In function \u2018T<4> test(T<4> (*)[8])\u2019:
test.cpp:7: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://llvm.org/bugs/> for instructions.

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