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]

Re: Specialization in templates


>>>>> "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


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