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

           Summary: Failure to call constructors of template class with
                    Enum template parameter
           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=7013)
 --> (http://llvm.org/bugs/attachment.cgi?id=7013)
Failing testcase

The attached code fails to compile using trunk with the following message:

test.cpp:52:15: error: no matching constructor for initialization of
'bitfield_foo' (aka 'basic<testenum::type, testenum::size>')
        bitfield_foo obj;
                     ^
test.cpp:18:7: note: candidate constructor (the implicit copy constructor) not
viable: requires 1 argument, but 0 were provided
class basic
      ^
1 error generated.


If I remove the "Enum Size" template parameter or if I remove the forward
declaration of the template class, it compiles again.

-- 
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