c/8290: [3.2/3.3 regression] Initialization with compound literals during declaration fails with gcc 3.2

Joseph S. Myers jsm28@cam.ac.uk
Tue Dec 3 11:36:00 GMT 2002


The following reply was made to PR c/8290; it has been noted by GNATS.

From: "Joseph S. Myers" <jsm28@cam.ac.uk>
To: Wolfgang Bangerth <bangerth@ticam.utexas.edu>
Cc: <gcc-bugs@gcc.gnu.org>,  <kipp@sgl.crestech.ca>,  <gcc-gnats@gcc.gnu.org>
Subject: Re: c/8290: [3.2/3.3 regression] Initialization with compound literals
 during declaration fails with gcc 3.2
Date: Tue, 3 Dec 2002 19:30:08 +0000 (GMT)

 On Tue, 3 Dec 2002, Wolfgang Bangerth wrote:
 
 > > This is deliberate, and the subject of previous mistaken PRs.  Compound
 > > literals are, in C99, unnamed variables, not constant expressions that can
 > > be used in initializers, and allowing them in initializers is not
 > > consistent with the C language and this C99 concept.  There is a special
 > > allowance for the old GNU "constructor expressions", which used the same
 > > syntax but had different semantics in this area, in gnu89 mode, but not
 > > gnu99.
 > 
 > So, am I right that this report should be closed as well?
 
 Yes.
 
 -- 
 Joseph S. Myers
 jsm28@cam.ac.uk
 



More information about the Gcc-prs mailing list