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 (Alexandre Oliva)
- Subject: Re: Specialization in templates
- From: Joe Buck <jbuck at Synopsys dot COM>
- Date: Sun, 1 Nov 98 18:53:04 PST
- Cc: jason at cygnus dot com, jbuck at Synopsys dot COM, un9i at rz dot uni-karlsruhe dot de, egcs at cygnus dot com, egcs-patches at cygnus dot com
> > 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?
At least the user is told what the real problem is, which is an
improvement. An accurate message followed by a noise message is
better than what we have now.
Error recovery is hard to do perfectly.