re PR c++/36999 (Erroneous "declaration 'class ...' does not declare anything" warnin...
authorSimon Baldwin <simonb@google.com>
Mon, 4 Aug 2008 15:09:56 +0000 (15:09 +0000)
committerSimon Baldwin <simonb@gcc.gnu.org>
Mon, 4 Aug 2008 15:09:56 +0000 (15:09 +0000)
commit771ce78ea0c1c51c2fe1579dea950d40a1b8028d
tree8cb01afe7fc8381db4660b4397422f3d4d566d0a
parent6fc3c2b2c42c5d5a177867aa5390f054d7d8a8a8
re PR c++/36999 (Erroneous "declaration 'class ...' does not declare anything" warnings possible)

        PR c++/36999
        * parser.c (cp_parser_elaborated_type_specifier): Warn only when
        the declaration's id is followed by a semicolon.

* g++.dg/warn/pr36999.C: New.

From-SVN: r138633
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/pr36999.C [new file with mode: 0644]