public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "nathan at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/11633] g++ does not initialize structures when auto-increment variables are used Date: Wed, 23 Jul 2003 09:04:00 -0000 [thread overview] Message-ID: <20030723090416.4284.qmail@sources.redhat.com> (raw) In-Reply-To: <20030722205341.11633.msimons@simons-clan.com> PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11633 ------- Additional Comments From nathan at gcc dot gnu dot org 2003-07-23 09:04 ------- I beleive the code to be ill formed. Looking at 8.5.1 of the std does not help. brace enclosed initializer lists can only be used for aggregates. 1.9 talks about sequence points and full-expression. The initializers in an initializer list are not full-expressions, because they'r part of the initializer. AFAICT, The comma symbol is only a sequence point when it is the comma-operator (and does not resolve to an overloaded function!) I suspect when designtated initializers are used in different C99 compilers, you'll find the behaviour is not the same across all compilers. The Defect list does not talk about this case, I will ask the committee. I would be surprised if the intent is to be anything different from C90/C99. nathan
next prev parent reply other threads:[~2003-07-23 9:04 UTC|newest] Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top 2003-07-22 20:53 [Bug c++/11633] New: " msimons at simons-clan dot com 2003-07-22 20:55 ` [Bug c++/11633] " msimons at simons-clan dot com 2003-07-22 21:41 ` bangerth at dealii dot org 2003-07-22 21:55 ` bangerth at dealii dot org 2003-07-22 22:10 ` msimons at simons-clan dot com 2003-07-22 23:19 ` msimons at simons-clan dot com 2003-07-22 23:36 ` bangerth at dealii dot org 2003-07-23 1:09 ` msimons at simons-clan dot com 2003-07-23 9:04 ` nathan at gcc dot gnu dot org [this message] 2003-08-23 17:11 ` pinskia at gcc dot gnu dot org 2003-11-21 16:55 ` pinskia at gcc dot gnu dot org 2003-11-21 16:57 ` pinskia at gcc dot gnu dot org 2004-04-30 1:47 ` [Bug c++/11633] [DR 430] " pinskia at gcc dot gnu dot org 2004-04-30 18:17 ` pinskia at gcc dot gnu dot org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20030723090416.4284.qmail@sources.redhat.com \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).