r174980 - Accept over-qualified constructor in MSVC emulation mode

Dmitri Gribenko gribozavr at gmail.com
Tue Feb 12 12:44:25 PST 2013


On Tue, Feb 12, 2013 at 9:44 PM, Richard Smith <richard at metafoo.co.uk> wrote:
>> We used to accept this code but now reject it:
>>
>> typedef int T;
>> struct X { X::X(T()); } x;
>> void f() { X().T(); }
>>
>> I'm not entirely sure whether the old or new behavior is correct (the new
>> behavior matches g++ and EDG, though).
>
>
> OK, I think under the resolutions of core issue 1435 and particularly 1310,
> the new behavior is correct. Please add a test for that!

Added in r175005.

Dmitri

-- 
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/



More information about the cfe-commits mailing list