This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/41476] [4.5 regression] __typeof__ expands to const type for function types
- From: "schwab at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Sep 2009 15:27:27 -0000
- Subject: [Bug c/41476] [4.5 regression] __typeof__ expands to const type for function types
- References: <bug-41476-50@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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