[LLVMbugs] [Bug 10579] New: Failure to call constructors of template class with Enum template parameter
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Aug 3 13:30:57 PDT 2011
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: unassignedclangbugs at nondot.org
ReportedBy: sefi at s-e-f-i.de
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
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.
More information about the llvm-bugs
mailing list