This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/3478] [3.4 regression] Accepts invalid enum declarations from template class
- From: "nathan at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Sep 2003 15:20:11 -0000
- Subject: [Bug c++/3478] [3.4 regression] Accepts invalid enum declarations from template class
- References: <20010629080601.3478.jthorn@thp.univie.ac.at>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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.