[LLVMbugs] [Bug 8088] New: segfault on simple template function

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Sep 5 15:41:16 PDT 2010


           Summary: segfault on simple template function
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: release blocker
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: pip88nl at gmail.com
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com

Created an attachment (id=5457)
 --> (http://llvm.org/bugs/attachment.cgi?id=5457)
stderr output of "clang test.cc"

In revision 113114, clang causes signal 11 to be raised when trying to parse a
simple template function:

template<typename T>
T const &id (T const &a) {
  return a;

int main () {
  id (0);
// END

uname -a:
Linux osiris 2.6.32-5-amd64 #1 SMP Thu Aug 12 13:01:50 UTC 2010 x86_64

clang -v:
clang version 2.8 (trunk 113114)
Target: x86_64-pc-linux-gnu
Thread model: posix

Error output attached.

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