http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51888

             Bug #: 51888
           Summary: [C++11]warn comma at end of enumerator list with
                    -pedantic
    Classification: Unclassified
           Product: gcc
           Version: 4.6.3
            Status: UNCONFIRMED
          Severity: trivial
          Priority: P3
         Component: c++
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: fl...@flast.jp


GCC warns following code with -pedantic in C++11 mode.
---- testcase.C ----
enum { foo, };
----

GCC says:
----
$ g++ -pedantic -std=c++0x -c testcase.C
testcase.C:1:11: warning: comma at end of enumerator list [-pedantic]
----

C++11 accepts it and should not warn this.

Reply via email to