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 PAD structs gives parse error
- From: "bruno at clisp dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Oct 2003 20:46:27 -0000
- Subject: [Bug c++/12615] [3.3 Regression] initializer syntax for PAD 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 bruno at clisp dot org 2003-10-14 20:46 -------
Andreas, right. The GCC documentation says that this GCC extension documented under
the name "Compound Literals" is supported as part of C99. But in ISO C99 only the bracket
expression without the preceding cast would be a valid initializer.
Nevertheless, the GCC documentation also says that "These extensions are available in C
and Objective-C. Most of them are also available in C++." IMO this means that g++ should
support it.