http://llvm.org/bugs/show_bug.cgi?id=7347
Summary: bad diagnostic for explicit instantiation through a
typedef
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
Created an attachment (id=5006)
--> (http://llvm.org/bugs/attachment.cgi?id=5006)
demo of problem
This came up in Skia, which is a library used by Chrome.
The crux is that
typedef C<char> CChar;
template int CChar::x; // fails
template int C<char>::x; // ok
and the error message isn't too helpful.
See attached for code to build with -fsyntax-only.
--
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