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++/12615] [3.3 Regression] initializer syntax for POD structs gives parse error


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


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