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++/33208] Broken diagnostic: 'component_ref' not supported by dump_decl



------- Comment #7 from pinskia at gcc dot gnu dot org  2007-09-01 21:15 -------
(In reply to comment #4)
> | But do we really want 'a.A::b' ?!?
> 
> No, we don't.  The format specific is OK -- e.g. it should be %qD.  However,
> the caller of error() should make sure it gives a _DECL.  It isn't 
> really the diagnostic machinery's business here to second guess
> a type error correction.

Actually "variable a" or "variable b" does not make sense here, we really want
to use the word lvalue instead of variable as shown by my other two testcases.

Yes I know it is not the diagnostic machinery's business here to second guess a
type error correction but I am saying we need to change the error message
fully.  We should not be using "variable %qD" when we can get any kind of
lvalues here.

-- Pinski


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33208


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