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: 4 Aug 2008 15:11:30 -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 #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