[C++ Patch] PR 50810 (new try)

Jason Merrill jason@redhat.com
Mon Oct 24 20:05:00 GMT 2011


On 10/24/2011 02:47 PM, Gabriel Dos Reis wrote:
> What about (testcase)
>
>       int f(char);
>       double f(...);
>
>       const int n = sizeof f({257});
>
> ?

The narrowing conversion would be marked as 'bad' and therefore the 
second overload chosen.  As before, the objective is to only change the 
diagnostic, not the meaning of valid code.

Jason



More information about the Gcc-patches mailing list