http://llvm.org/bugs/show_bug.cgi?id=15886
Bug ID: 15886
Summary: defaulted default constructor of class cannot be used
by non-static data member initializer which appears
before end of class definition
Product: clang
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: Frontend
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
The following code fails to compile with the current trunk version of clang.
This seems to be a regression that may be related to the issue referred to in
#15458
struct Test {
class Nested {
Nested() {}
};
Test() noexcept = default;
int data_{};
};
clang++ --std=c++11 test.cpp
test.cpp:6:5: error: defaulted default constructor of 'Test' cannot be used by
non-static data member initializer which
appears before end of class definition
Test() noexcept = default;
^
1 error generated.
--
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