This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/36999] Erroneous "declaration 'class ...' does not declare anything" warnings possible
- From: "simonb at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Aug 2008 12:29:10 -0000
- Subject: [Bug c++/36999] Erroneous "declaration 'class ...' does not declare anything" warnings possible
- References: <bug-36999-11271@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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