[Bug c++/36999] Erroneous "declaration 'class ...' does not declare anything" warnings possible

simonb at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu Aug 7 12:30:00 GMT 2008



------- Comment #5 from simonb at gcc dot gnu dot org  2008-08-07 12:29 -------
Subject: Bug 36999

Author: simonb
Date: Thu Aug  7 12:27:48 2008
New Revision: 138838

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=138838
Log:
gcc/cp/ChangeLog:
        Backport from mainline:
        2008-08-04  Simon Baldwin  <simonb@google.com>

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

gcc/testsuite/ChangeLog:
        Backport from mainline:
        2008-08-04  Simon Baldwin  <simonb@google.com>

        PR c++/36999
        * g++.dg/warn/pr36999.C: New.



Added:
    branches/gcc-4_3-branch/gcc/testsuite/g++.dg/warn/pr36999.C
Modified:
    branches/gcc-4_3-branch/gcc/cp/ChangeLog
    branches/gcc-4_3-branch/gcc/cp/parser.c
    branches/gcc-4_3-branch/gcc/testsuite/ChangeLog


-- 


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



More information about the Gcc-bugs mailing list