https://llvm.org/bugs/show_bug.cgi?id=26841
Bug ID: 26841
Summary: [accepts-invalid] Member template inside a local class
Product: clang
Version: trunk
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
The following code compiles successfully on Clang trunk, but it is invalid
according to the C++14 standard:
int main() {
struct foo { template <typename ...> using nested = void; };
}
The relevant part of the standard is in [temp.mem], ยง14.5.2/2:
A local class of non-closure type shall not have member templates.
Live example: http://melpon.org/wandbox/permlink/6iFYFG3gcgzOYftp
Surprisingly, this bug is marked as fixed in bug [16947], so I guess this
is a regression.
[16947]: https://llvm.org/bugs/show_bug.cgi?id=16947
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs