[cfe-commits] r60921 - in /cfe/trunk:

Chris Lattner sabre at nondot.org
Fri Dec 12 08:27:18 PST 2008


On Fri, 12 Dec 2008, Sebastian Redl wrote:
> On Fri, 12 Dec 2008 05:05:22 -0000, Chris Lattner <sabre at nondot.org> 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/



More information about the cfe-commits mailing list