public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/51027] New: [C++11] GCC accepts alias-declaration without ';'
@ 2011-11-08  9:11 flast at flast dot jp
  2011-11-08 11:35 ` [Bug c++/51027] [C++0x] " paolo.carlini at oracle dot com
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: flast at flast dot jp @ 2011-11-08  9:11 UTC (permalink / raw)
  To: gcc-bugs

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]
----


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-11-14 14:01 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-08  9:11 [Bug c++/51027] New: [C++11] GCC accepts alias-declaration without ';' flast at flast dot jp
2011-11-08 11:35 ` [Bug c++/51027] [C++0x] " paolo.carlini at oracle dot com
2011-11-08 15:49 ` dodji at gcc dot gnu.org
2011-11-08 16:42 ` dodji at gcc dot gnu.org
2011-11-08 21:42 ` dodji at gcc dot gnu.org
2011-11-09  8:02 ` dodji at gcc dot gnu.org
2011-11-09  8:54 ` dodji at gcc dot gnu.org
2011-11-14 14:07 ` redi at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).