[Bug c++/46005] Don't allow auto as the simple-type-specifier of a typedef

2010-10-13 Thread sch...@linux-m68k.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46005

--- Comment #1 from Andreas Schwab sch...@linux-m68k.org 2010-10-13 15:12:13 
UTC ---
I'm getting 'error: ‘autot’ does not name a type' with both current trunk and
4.5.  4.4 gives error: conflicting specifiers in declaration of ‘autot’ which
is the better error message (which you get also with trunk and 4.5 with
typedef auto int autot;).


[Bug c++/46005] Don't allow auto as the simple-type-specifier of a typedef

2010-10-13 Thread schaub-johannes at web dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46005

--- Comment #2 from Johannes Schaub schaub-johannes at web dot de 2010-10-13 
15:28:04 UTC ---
(In reply to comment #1)
 I'm getting 'error: ‘autot’ does not name a type' with both current trunk and
 4.5.  4.4 gives error: conflicting specifiers in declaration of ‘autot’ 
 which
 is the better error message (which you get also with trunk and 4.5 with
 typedef auto int autot;).

You haven't enabled C++0x. My PR is about C++0x's auto.