http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60341
--- Comment #12 from Mikael Morin <mikael at gcc dot gnu.org> --- Author: mikael Date: Sun Mar 2 18:49:18 2014 New Revision: 208259 URL: http://gcc.gnu.org/viewcvs?rev=208259&root=gcc&view=rev Log: fortran/ PR fortran/60341 * frontend-passes.c (optimize_comparison): Guard two union accesses with the corresponding tag checks. testsuite/ PR fortran/60341 * gfortran.dg/str_comp_optimize_1.f90: New test. Added: branches/gcc-4_7-branch/gcc/testsuite/gfortran.dg/str_comp_optimize_1.f90 Modified: branches/gcc-4_7-branch/gcc/fortran/ChangeLog branches/gcc-4_7-branch/gcc/fortran/frontend-passes.c branches/gcc-4_7-branch/gcc/testsuite/ChangeLog