This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c/5105: compound literal patch broken with inlining
- From: aj at gcc dot gnu dot org
- To: aj at suse dot de, bo at suse dot de, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, jsm28 at gcc dot gnu dot org
- Date: 17 Dec 2001 09:40:51 -0000
- Subject: Re: c/5105: compound literal patch broken with inlining
- Reply-to: aj at gcc dot gnu dot org, aj at suse dot de, bo at suse dot de, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, jsm28 at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
Synopsis: compound literal patch broken with inlining
State-Changed-From-To: open->closed
State-Changed-By: aj
State-Changed-When: Mon Dec 17 01:40:51 2001
State-Changed-Why:
This has been fixed with Joseph's patch (just tested glibc),
thanks,
Andreas
2001-12-17 Joseph S. Myers <jsm28@cam.ac.uk>
* c-common.def (COMPOUND_LITERAL_EXPR): Contain a DECL_STMT, not
a DECL directly.
* c-common.h (COMPOUND_LITERAL_EXPR_DECL_STMT): New.
(COMPOUND_LITERAL_EXPR_DECL): Adjust definition.
* c-decl.c (build_compound_literal): Put the decl inside a
DECL_STMT.
* doc/c-tree.texi (COMPOUND_LITERAL_EXPR): Update documentation.
Fixes PR c/5105.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5105