------- Comment #1 from schwab at gcc dot gnu dot org 2009-09-27 15:27 ------- Subject: Bug 41476
Author: schwab Date: Sun Sep 27 15:27:08 2009 New Revision: 152220 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=152220 Log: 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/: * gcc.dg/cond-constqual-1.c: New test. Added: trunk/gcc/testsuite/gcc.dg/cond-constqual-1.c Modified: trunk/gcc/ChangeLog trunk/gcc/c-typeck.c trunk/gcc/testsuite/ChangeLog -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41476