[Bug c/60809] C99 struct initialiser with embedded self assignment

jimis at gmx dot net gcc-bugzilla@gcc.gnu.org
Thu Apr 10 18:37:00 GMT 2014


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60809

--- Comment #5 from jimis <jimis at gmx dot net> ---
Andreas: On a second thought, this paragraph only talks about the order
*within* the initialisation list. But no matter of that order, the
initialisation list is always evaluated to:

        {
                .ai_family = AF_UNSPEC,
                .ai_socktype = SOCK_STREAM,
                AI_PASSIVE
        };


The outer assignment to query2, should never set ai_flags, no matter what the
side-effects of the inner assignments are. Am I thinking right?



More information about the Gcc-bugs mailing list