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

           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: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]


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:

// BEGIN
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
GNU/Linux

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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to