This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]