http://llvm.org/bugs/show_bug.cgi?id=6957
Summary: specialization of virtual function member trigger a
compilation error
Product: clang
Version: 2.7
Platform: Other
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=4748)
--> (http://llvm.org/bugs/attachment.cgi?id=4748)
test case
In case a template class contains two virtual members, the specialization of
the second virtual function trigger the following error:
test31.cpp:18:16: error: explicit specialization of 'hello2' after
instantiation
void A<float>::hello2( )
^
test31.cpp:12:15: note: implicit instantiation first required here
int A<float>::hello()
^
2 diagnostics generated.
In attachment, there is a code snippet that show the problem (that code
compiles with gcc and msvc).
--
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