This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/30378] cryptic expression in error message for ill-formed template code
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Jan 2007 04:34:40 -0000
- Subject: [Bug c++/30378] cryptic expression in error message for ill-formed template code
- References: <bug-30378-1186@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from pinskia at gcc dot gnu dot org 2007-01-05 04:34 -------
We could better pretty print: "*((B<int>*)this)->B<int>::a += x" to something
like:
*(this->B<int>::a) += x
Which should get a better picture of things.
"and the explicit qualification", I think that is actually a benifit to our
pretty print system.
EDG just prints out the line which is ok except when macros come into place :).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30378