[C++ Patch] PR 51230
Paolo Carlini
paolo.carlini@oracle.com
Sun Nov 20 09:03:00 GMT 2011
Hi,
apparently in the new deductions notes we are not handling correctly
non-type parameters in some messages, like in:
template<int> struct A {};
template<int N> void foo(A<N>, A<N>);
void bar()
{
foo(A<0>(), A<1>());
}
we use %qT in unify_inconsistency and the output is garbled. The below
is the most compact fix I have been able to figure out, but of course
other solutions are possible, like separate error messages for non-type
(TYPE_P (parm) to tell which appears to work fine), etc. Tested
x86_64-linux.
Thanks,
Paolo.
//////////////////////
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CL_51230
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20111120/f68d329c/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch_51230
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20111120/f68d329c/attachment-0001.ksh>
More information about the Gcc-patches
mailing list