This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/33208] Broken diagnostic: 'component_ref' not supported by dump_decl
- From: "gdr at cs dot tamu dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Sep 2007 21:07:55 -0000
- Subject: [Bug c++/33208] Broken diagnostic: 'component_ref' not supported by dump_decl
- References: <bug-33208-1771@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from gdr at cs dot tamu dot edu 2007-09-01 21:07 -------
Subject: Re: Broken diagnostic: 'component_ref' not supported by dump_decl
"pcarlini at suse dot de" <gcc-bugzilla@gcc.gnu.org> writes:
| 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.
Of course, it would have been better if we had diagnostics with carret...
-- Gaby
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33208