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++/34270] [4.2/4.3 regression] ICE applying __decltype to ternary expression



------- Comment #2 from jakub at gcc dot gnu dot org  2007-11-29 21:06 -------
Subject: Bug 34270

Author: jakub
Date: Thu Nov 29 21:06:18 2007
New Revision: 130520

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=130520
Log:
        PR c++/34270
        * tree.c (lvalue_p_1) <case COND_EXPR>: Handle x ?: y
        in templates.
        * typeck.c (is_bitfield_expr_with_lowered_type) <case COND_EXPR>:
        Likewise.

        * g++.dg/template/cond7.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/template/cond7.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/tree.c
    trunk/gcc/cp/typeck.c
    trunk/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34270


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