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


I wrote:

>>> Ok, I managed to introduce a modification in the grammar that catches
>>> this case, and prints an error message.  However, after that, the
>>> template processing prints another error message that I can't find a
>>> way to avoid :-(

>>>>>> Joe Buck <jbuck@Synopsys.COM> writes:

>> Mark's expressed some concerns about mucking with the bison grammar, and
>> given that you've introduced a new reduce/reduce conflict it seems real

On Nov  1, 1998, Jason Merrill <jason@cygnus.com> wrote:

> It's only a shift/reduce conflict, actually.  I'm not worried.

>> /home/phd/oliva/t.cc:1: identifier `A' has not been declared as a template

> Sounds fine.  Alexandre, go ahead and change the message and put it in.

You mean, put the change in even though now it produces two error
messages, and the second is totally meaningless?

-- 
Alexandre Oliva
mailto:oliva@dcc.unicamp.br mailto:oliva@gnu.org mailto:aoliva@acm.org
http://www.dcc.unicamp.br/~oliva
Universidade Estadual de Campinas, SP, Brasil



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