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: unassig...@gcc.gnu.org
        ReportedBy: fl...@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]
----

Reply via email to