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

[Bug c++/28513] [4.0/4.1/4.2/4.3 Regression] QOI: Diagnostic missing since 3.3.x when naming rule is violated



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


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