This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/47144] [4.5 Regression] Doesn't reject attempt to define type in template argument; results in weird parse
- From: "schaub.johannes at googlemail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 1 Jan 2011 18:42:03 +0000
- Subject: [Bug c++/47144] [4.5 Regression] Doesn't reject attempt to define type in template argument; results in weird parse
- Auto-submitted: auto-generated
- References: <bug-47144-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47144
--- Comment #4 from Johannes Schaub <schaub.johannes at googlemail dot com> 2011-01-01 18:41:53 UTC ---
(In reply to comment #3)
> (In reply to comment #2)
> > > what 4.6.0 version are you using?
> >
> > Hmm, "4.6.0 20101113 (experimental)".
>
> Ah, maybe that accepted it, but current 4.6 rejects it.
> I assume it was changed by Nathan Froyd's recent changes to diagnostics about
> missing ';' after a class definition.
>
Ah I see. Have you found any combination of this that fails on trunk? Could be
worth putting it here. Maybe adding declarators prevents it from wanting to see
a semicolon?
template<typename> struct A { }; A< struct B { }* >::SomeNonSense int y;
Thanks!