[LLVMbugs] [Bug 23844] New: clang accepts invalid declaration of member template in local class
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sun Jun 14 08:12:52 PDT 2015
https://llvm.org/bugs/show_bug.cgi?id=23844
Bug ID: 23844
Summary: clang accepts invalid declaration of member template
in local class
Product: new-bugs
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: octoploid at yandex.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
markus at x4 /tmp % cat foo.ii
int main() {
struct A {
template <typename...> using nested = void;
};
}
markus at x4 /tmp % clang++ -c -std=c++11 foo.ii
markus at x4 /tmp % g++ -c -std=c++11 foo.ii
foo.ii: In function ‘int main()’:
foo.ii:3:5: error: invalid declaration of member template in local class
template <typename...> using nested = void;
^
markus at x4 /tmp % icpc -c -std=c++11 foo.ii
foo.ii(3): error: a template declaration is not allowed here
template <typename...> using nested = void;
^
compilation aborted for foo.ii (code 2)
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150614/f4ff068d/attachment.html>
More information about the llvm-bugs
mailing list