This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix ICE with C compound literals (PR c/48517)
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Mon, 11 Apr 2011 21:29:11 +0000 (UTC)
- Subject: Re: [PATCH] Fix ICE with C compound literals (PR c/48517)
- References: <20110411195238.GA17079@tyan-ft48-01.lab.bos.redhat.com>
On Mon, 11 Apr 2011, Jakub Jelinek wrote:
> 2011-04-11 Jakub Jelinek <jakub@redhat.com>
>
> PR c/48517
> * c-typeck.c (store_init_value): Set TREE_TYPE (decl) to
> qualified type.
>
> * gcc.dg/pr48517.c: New test.
OK, though I think the test would go better in gcc.c-torture/compile since
it requires no special options and does not test for any diagnostics.
--
Joseph S. Myers
joseph@codesourcery.com