[Bug c++/14971] better error message for partial specialization of function templates requested
gdr at integrable-solutions dot net
gcc-bugzilla@gcc.gnu.org
Fri Apr 16 17:30:00 GMT 2004
------- Additional Comments From gdr at integrable-solutions dot net 2004-04-16 16:20 -------
Subject: Re: better error message for partial specialization of function templates requested
"bangerth at dealii dot org" <gcc-bugzilla@gcc.gnu.org> writes:
| This is so trivial that it can probably slip in without a copyright
| assignment. I don't know whether this is the right way to handle long
| error messages, and also note that this is completely untested (no
| time, sorry).
Thanks for doing this.
I would suggest the slightly variation:
[...]
| --- 1696,1703 ----
| template <class T> void f<int>(); */
|
| if (uses_template_parms (declarator))
| ! error ("partial specialization `%D'; partial specializations "
| ! "of function templates are not allowed in C++",
| declarator);
error ("function template partial specialization is not allowed");
With that change, the patch is approved (can you commit?).
-- Gaby
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14971
More information about the Gcc-bugs
mailing list