re PR c++/7050 (g++ segfaults on: (i ? get_string() : throw))
authorAndrew Lewycky <andrew@mxc.ca>
Wed, 12 Mar 2003 22:24:48 +0000 (17:24 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 12 Mar 2003 22:24:48 +0000 (17:24 -0500)
commit847311f4570e0182e9f9c4759fcffd7c4da07477
treec8a7fb056d60c96eb16729f4d66e63d6bfdcbd45
parentff8b9ca85f20291cddd44025f1f395bffe433133
re PR c++/7050 (g++ segfaults on: (i ? get_string() : throw))

        PR c++/7050
        * expr.c (store_expr): Don't attempt to store void-typed trees,
        just evaluate them for side effects.
        * cp/expr.c (cxx_expand_expr): Return const0_rtx for throw
        expressions.

From-SVN: r64268
gcc/ChangeLog
gcc/cp/ChangeLog
gcc/cp/expr.c
gcc/expr.c