S
Szabolcs Nagy
Nate said:Is it really? gcc -ansi -pedantic accepts it.
i haven't checked the standard (but i remember getting warning for it
with gcc -Wall) now i'm not sure, will check it later
Nate said:Is it really? gcc -ansi -pedantic accepts it.
Keith Thompson said:[...]Nate Eldredge said:Thanks. I bit the bullet and bought a copy of the standard, and now
it makes sense.
I hope you knew that a post-standard draft, which includes the C99
standard with the three Technical Corrigenda merged into it, is
available at no charge at
<http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1256.pdf>.
i haven't checked the standard (but i remember getting warning for it
with gcc -Wall) now i'm not sure, will check it later
I think you mean
struct foo blah = *(struct foo[]){ { .a = 17, .b = 23 } };
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.