[Bug c++/3478] [3.4 regression] Accepts invalid enum declarations from template class
nathan at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon Sep 22 15:56:00 GMT 2003
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3478
------- Additional Comments From nathan at gcc dot gnu dot org 2003-09-22 15:20 -------
I don't agree with
enum A<T>::E e3; // invalid, A<T>::E is dependent and hence
// [7.1.5.3]/3 cannot be enforced
7.1.5.3/3 can be enforced at instantiation time. I beleive there's a DR
allowing an implicit typename in an elaborated type specifier.
More information about the Gcc-bugs
mailing list