This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: C++ PATCH: New parser
- From: Mark Mitchell <mark at codesourcery dot com>
- To: Gerald Pfeifer <pfeifer at dbai dot tuwien dot ac dot at>
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 30 Dec 2002 12:11:25 -0800
- Subject: 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