[Bug c++/28513] [4.0/4.1/4.2/4.3 Regression] QOI: Diagnostic missing since 3.3.x when naming rule is violated
manu at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon Dec 17 15:03:00 GMT 2007
------- 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
More information about the Gcc-bugs
mailing list