This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/28513] [4.0/4.1/4.2/4.3 Regression] QOI: Diagnostic missing since 3.3.x when naming rule is violated
- From: "manu at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Dec 2007 15:02:58 -0000
- Subject: [Bug c++/28513] [4.0/4.1/4.2/4.3 Regression] QOI: Diagnostic missing since 3.3.x when naming rule is violated
- References: <bug-28513-7852@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from manu at gcc dot gnu dot org 2007-12-17 15:02 -------
(In reply to comment #2)
> I guess this warning was never implemented in the new parser.
>
It is a pedwarn in class.c (note_name_declared_in_class). The following invokes
it:
class foo {
public:
typedef int bar;
};
class baz {
public:
foo foo;
};
The difference is that in cp_parser_simple_type_specifier 'foo::bar' does not
invoke maybe_note_name_used_in_class, while just 'foo' does.
--
manu at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |manu at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28513