http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46005
Summary: Don't allow "auto" as the simple-type-specifier of a
typedef
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: [email protected]
ReportedBy: [email protected]
The following is ill-formed, but GCC allows it
typedef auto autot;
And it seems GCC itself can't handle it
autot t = 0; // variable has incomplete type!?
Neither does the Standard specify how it should be handled (it only talks about
auto type specifiers, as opposed to "auto" being the type designated
semantically. There is no semantic equivalent for "auto" it seems). In Standard
C++, something like "autot t = 0;" can't occur, I think.