http://llvm.org/bugs/show_bug.cgi?id=9965
Summary: default constructor not emitted for templated class
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: C++0x
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
The following code fails to link, when compiled with -std=gnu++0x. The problem
is that the constructor for X is not emitted.
Removing the template from X, or replacing X's constructor with: X() = {}, or
leaving the default one, fixes the problem.
template<typename T>
struct X
{
X() = default;
};
int main(void)
{ X<int> l; }
--
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