This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [C++ RFC/Patch] PR 34938


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]