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: 15 Oct 2003 11:20:40 -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-15 11:20 -------
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:
| > There is a standard way to express an equivalent construct. I would strongly
| > suggest you use it.
|
| The problem with this is that it is not a syntax which is valid in
| initializers _and_ expressions. I'd need to write
The C99 standard syntax works in both cases
The syntax you used is documented as non-supported in g++. So this
is a C++ bug.
-- Gaby