[PATCH] Fix PR c/9928

Eric Botcazou ebotcazou@libertysurf.fr
Tue Mar 11 17:22:00 GMT 2003


Hi,

This is an ICE on illegal code, regression from GCC 3.2.2 present on all 
active branches. It appears that my previous patch for PR c/7741 was a bit 
gross: http://gcc.gnu.org/ml/gcc-patches/2003-02/msg00641.html

Compiled (this is error-recovery material) and regtested on 
i586-redhat-linux-gnu (c 3.2 branch). Ok for mainline and 3.3? Ok for 3.2?

-- 
Eric Botcazou


2003-03-11  Eric Botcazou  <ebotcazou@libertysurf.fr>

	PR c/9928
	* c-decl.c (duplicate_decls): Discard the initializer of the new decl
	only if it is a VAR_DECL.

2003-03-11  Eric Botcazou  <ebotcazou@libertysurf.fr>

	* gcc.dg/decl-3.c: New test.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr9928.diff
Type: text/x-diff
Size: 651 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20030311/5ce61b91/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: decl-3.c
Type: text/x-csrc
Size: 154 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20030311/5ce61b91/attachment-0001.bin>


More information about the Gcc-patches mailing list