This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



------- Comment #1 from simonb at gcc dot gnu dot org  2008-08-04 15:11 -------
Subject: Bug 36999

Author: simonb
Date: Mon Aug  4 15:09:56 2008
New Revision: 138633

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=138633
Log:
        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.


Added:
    trunk/gcc/testsuite/g++.dg/warn/pr36999.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/parser.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]