This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Specialization in templates
- To: Joe Buck <jbuck at synopsys dot com>
- Subject: Re: Specialization in templates
- From: Jason Merrill <jason at cygnus dot com>
- Date: 01 Nov 1998 10:49:43 -0800
- Cc: oliva at dcc dot unicamp dot br (Alexandre Oliva), un9i at rz dot uni-karlsruhe dot de, egcs at cygnus dot com, egcs-patches at cygnus dot com
- References: <199810311752.JAA29519@atrus.synopsys.com>
>>>>> Joe Buck <jbuck@Synopsys.COM> writes:
>> 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 :-(
> 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
It's only a shift/reduce conflict, actually. I'm not worried.
> But disregarding that issue:
>> oliva@tiete% ./cc1plus -quiet ~/t.cc
>> /home/phd/oliva/t.cc:1: template class A was not declared yet
> A might never be declared as a template, it might be a typo. How
> about
> /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.
Jason