[Bug c/41476] [4.5 regression] __typeof__ expands to const type for function types

schwab at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sun Sep 27 15:27:00 GMT 2009



------- 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



More information about the Gcc-bugs mailing list