Hi,

On 08/22/2014 10:45 PM, Jason Merrill wrote:
Does your patch handle this correctly?

template <class T> struct A { };
A<void()const>*p = 42;
I would say yes:

34938_2.C:2:20: error: invalid conversion from ‘int’ to ‘A<void() const>*’ [-fpermissive]
 A<void()const>*p = 42;

But, interestingly, in this case 4.8.x was incorrect, this specific case isn't a 4.9 regression. I would definitely add this testcase too to the testsuite.

Paolo.

Reply via email to