------- 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