This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]