https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77798
--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> --- Author: rguenth Date: Sat Oct 1 14:34:18 2016 New Revision: 240696 URL: https://gcc.gnu.org/viewcvs?rev=240696&root=gcc&view=rev Log: 2016-10-01 Richard Biener <rguent...@suse.de> PR middle-end/77798 * genmatch.c (get_operand_type): Add operand position arg and handle COND_EXPR comparison operand with fixed boolean_type_node. (expr::gen_transform): Adjust. (dt_simplify::gen_1): Likewise. * gfortran.fortran-torture/compile/pr77798.f90: New testcase. Added: trunk/gcc/testsuite/gfortran.fortran-torture/compile/pr77798.f90 Modified: trunk/gcc/ChangeLog trunk/gcc/genmatch.c trunk/gcc/testsuite/ChangeLog