Re: Using initializer without a cast?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 4/10/18, Jonathan Wakely <jwakely.gcc@xxxxxxxxx> wrote:
>>
>> Is there a way of doing initializers in second group without doing a
>> cast?
>
> Only in C++. The C standard defines a compound literal as (type-name){
> initializer-list }. If you don't have the type-name then it's not a
> compound literal.
>

Thanks. Do you see any chance of this becoming a GNU extension? It
would make sense to you?

Regards,
BM



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux