Re: C99 struct initialiser with embedded self assignment

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

 



On Wed, 9 Apr 2014, Manuel López-Ibáñez wrote:

On 09/04/14 01:42, Dimitrios Apostolou wrote:> Hello GCC community!
Do you think that the compiler should have warned in query2? Something like
"suggest parentheses around assignment"?

Please open a bug report: http://gcc.gnu.org/bugs/


Thanks, I will open a bug for the warning. But first it needs to be clear what is the standard C99 mandated behaviour for:

        struct addrinfo query2 = {
                .ai_family = AF_UNSPEC,
                .ai_socktype = SOCK_STREAM,
                query2.ai_flags = AI_PASSIVE
        };


Any ideas?

Thanks,
Dimitris


[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