On Fri, 12 Dec 2008, Sebastian Redl wrote:
> On Fri, 12 Dec 2008 05:05:22 -0000, Chris Lattner <[email protected]> wrote:
>>
>> -char *X = __func__; // expected-error {{predefined identifier is only
>> valid}}
>> +char *X = __func__; // expected-warning {{predefined identifier is only
>> valid}} \
>> +                       expected-warning {{initializing 'char const [1]'
>> discards qualifiers, expected 'char *'}}
>>
>
> Why not just make it const?

that would also work, but then we wouldn't know if __func__ was getting 
the right type or not.  *shrug*

-Chris

-- 
http://nondot.org/sabre/
http://llvm.org/
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to