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

Re: C++ PATCH: New parser




--On Monday, December 30, 2002 09:04:21 PM +0100 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at> wrote:

Mark,

is there any chance we can get better diagnosis for code like the
following?
Yes -- but it's not going to be a top priority for me.  I'm going to be
fixing the other bugs and looking at the performance complaints first.

This is a case where the old parser did not require typename, and
the error message is quite confusing for the casual C++ hacker.
Yes.  I expect a FAQ over the next release cycle or so will be "why
do I get weird errors in templates?"

We deprecated implicit typename a while back.  It's not too easy to
generate great error messages because the poor parser doesn't know
that the construct maybe use to be a typename.

--
Mark Mitchell                mark@codesourcery.com
CodeSourcery, LLC            http://www.codesourcery.com


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