[LLVMbugs] [Bug 6957] New: specialization of virtual function member trigger a compilation error

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Apr 27 14:25:26 PDT 2010


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: unassignedclangbugs at nondot.org
        ReportedBy: cyb at lepi.org
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


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.



More information about the llvm-bugs mailing list