This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Specialization in templates
- To: oliva at dcc dot unicamp dot br
- Subject: Re: Specialization in templates
- From: Mark Mitchell <mark at markmitchell dot com>
- Date: Sat, 31 Oct 1998 09:30:12 -0800
- CC: jbuck at Synopsys dot COM, un9i at rz dot uni-karlsruhe dot de, egcs at cygnus dot com, egcs-patches at cygnus dot com
- References: <199810301718.JAA05523@atrus.synopsys.com> <orpvb9p4sj.fsf@araguaia.dcc.unicamp.br>
- Reply-to: mark at markmitchell dot com
>>>>> "Alexandre" == Alexandre Oliva <oliva@dcc.unicamp.br> writes:
Alexandre> Ok, I managed to introduce a modification in the
Alexandre> grammar that catches this case, and prints an error
Alexandre> message. However, after that, the template processing
Alexandre> prints another error message that I can't find a way to
Alexandre> avoid :-(
I guess I would suggest we kind of stay out of the grammar at the
moment. I really do have a partly done new recursive-descent parser,
which can do better error recover; it's waiting for the time and money
required to finish it. I would expect that sometime within the next
few months, those resources will become available.
The bison grammar is quite fragile; sometimes even reasonable changes
cause things to break in odd ways. I'm not commenting on your patch,
just on the general case.
So, I have nothing to say about your patch; just a general
encouragement not to try to push the square LALR(1) into the round
hole of great parser for C++. :-)
--
Mark Mitchell mark@markmitchell.com
Mark Mitchell Consulting http://www.markmitchell.com