This is the mail archive of the gcc-patches@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]

Re: [PATCH] Fix PR36999 - Erroneous '...does not declare anything' warnings possible


Simon Baldwin wrote:

gcc/cp/ChangeLog:
2008-08-01  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:
2008-08-01  Simon Baldwin  <simonb@google.com>

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

+void cf1 (class C1::C2, void*); // Should not provoke a warning

These lines should use dg-bogus.


OK with that change.

--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713


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