pt.c (process_partial_specialization): Use error_n instead of error.
2010-03-04 Marco Poletti <poletti.marco@gmail.com> * pt.c (process_partial_specialization): Use error_n instead of error. From-SVN: r157229
This commit is contained in:
parent
b2d244d15f
commit
83ff92fb26
|
@ -1,3 +1,8 @@
|
||||||
|
2010-03-04 Marco Poletti <poletti.marco@gmail.com>
|
||||||
|
|
||||||
|
* pt.c (process_partial_specialization): Use error_n instead of
|
||||||
|
error.
|
||||||
|
|
||||||
2010-03-03 Jason Merrill <jason@redhat.com>
|
2010-03-03 Jason Merrill <jason@redhat.com>
|
||||||
|
|
||||||
PR c++/12909
|
PR c++/12909
|
||||||
|
|
17
gcc/cp/pt.c
17
gcc/cp/pt.c
|
@ -3987,16 +3987,19 @@ process_partial_specialization (tree decl)
|
||||||
If they are fully specialized in the
|
If they are fully specialized in the
|
||||||
specialization, that's OK. */
|
specialization, that's OK. */
|
||||||
int j;
|
int j;
|
||||||
|
int count = 0;
|
||||||
for (j = 0; j < nargs; ++j)
|
for (j = 0; j < nargs; ++j)
|
||||||
if (tpd2.parms[j] != 0
|
if (tpd2.parms[j] != 0
|
||||||
&& tpd.arg_uses_template_parms [j])
|
&& tpd.arg_uses_template_parms [j])
|
||||||
{
|
++count;
|
||||||
error ("type %qT of template argument %qE depends "
|
if (count != 0)
|
||||||
"on template parameter(s)",
|
error_n (input_location, count,
|
||||||
type,
|
"type %qT of template argument %qE depends "
|
||||||
arg);
|
"on a template parameter",
|
||||||
break;
|
"type %qT of template argument %qE depends "
|
||||||
}
|
"on template parameters",
|
||||||
|
type,
|
||||||
|
arg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue