This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Fix type qualifiers of conditional expression
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Andreas Schwab <schwab at linux-m68k dot org>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Sun, 27 Sep 2009 13:54:03 +0000 (UTC)
- Subject: Re: Fix type qualifiers of conditional expression
- References: <m2eiptffcn.fsf@igel.home>
On Sun, 27 Sep 2009, Andreas Schwab wrote:
> 2009-09-26 Andreas Schwab <schwab@linux-m68k.org>
>
> PR c/41476
> * c-typeck.c (build_conditional_expr): Use the readonly and
> volatile flags of the operand types, not of the operands itself.
>
> testsuite/:
> PR c/41476
> * gcc.dg/cond-constqual-1.c: New test.
OK.
--
Joseph S. Myers
joseph@codesourcery.com