[Bug c++/51027] New: [C++11] GCC accepts alias-declaration without ';'
flast at flast dot jp
gcc-bugzilla@gcc.gnu.org
Tue Nov 8 09:11:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51027
Bug #: 51027
Summary: [C++11] GCC accepts alias-declaration without ';'
Classification: Unclassified
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: flast@flast.jp
GCC now implements alias-declaration. But accepts it without trailing ';' .
e.g.
----
using INT = int
----
And warn with ';' via -pedantic.
e.g.
----
using INT = int;
----
output
----
$ g++ -pedantic -c -std=gnu++11 test.C
test.C:1:16: warning: extra ';' [-pedantic]
----
More information about the Gcc-bugs
mailing list