This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/12615] [3.3 Regression] initializer syntax for POD structs gives parse error
- From: "gdr at integrable-solutions dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Oct 2003 11:28:18 -0000
- Subject: [Bug c++/12615] [3.3 Regression] initializer syntax for POD structs gives parse error
- References: <20031014193706.12615.bruno@clisp.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12615
------- Additional Comments From gdr at integrable-solutions dot net 2003-10-18 11:28 -------
Subject: Re: [3.3 Regression] initializer syntax for POD structs gives parse error
"bruno at clisp dot org" <gcc-bugzilla@gcc.gnu.org> writes:
| Gabriel dos Reis writes:
| > object a = { 0, 0 }; // for initialization.
| > object a; a = (object) { 0, 0 };
|
| This recommendation, to use different syntax for initialization than for
| assignment, goes against the ISO C++ grammar.
Look: Anything you've done until now *goes against* the ISO C++ grammar.
Your complain is NOT founded as far as standard C++ is concerned. It
is NOT founded as far as GNU C++ is concerned.
I've taken your PR as a feature request instead of a bug report and
suggested alterntaives that have *high chance* to get into the next
version of ISO C++ standard.
The initialization syntax *is* ISO C++ syntax. It is also ISO C syntax.
The proposed syntax in assignment is under discussion in the C++
evolution working group. And currently it is ISO C syntax.
You have your bread. You may even be able to eat it.
-- Gaby