OSDN Git Service

* c-common.def (COMPOUND_LITERAL_EXPR): Contain a DECL_STMT, not
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 17 Dec 2001 01:18:41 +0000 (01:18 +0000)
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 17 Dec 2001 01:18:41 +0000 (01:18 +0000)
commitfccd796a15d21307aa3e51c857a661f630199f2c
treeb0c444fe54bd3f1b332cc67c0727beaa08189268
parentbbf524e73c6d35b120c2424d476aaf4e96814b44
* 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.

testsuite:
* gcc.c-torture/compile/20011217-1.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@48085 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/c-common.def
gcc/c-common.h
gcc/c-decl.c
gcc/doc/c-tree.texi
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/20011217-1.c [new file with mode: 0644]