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

--- Comment #11 from Mikael Morin <mikael at gcc dot gnu.org> ---
Author: mikael
Date: Sun Mar  2 18:36:42 2014
New Revision: 208258

URL: http://gcc.gnu.org/viewcvs?rev=208258&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_8-branch/gcc/testsuite/gfortran.dg/str_comp_optimize_1.f90
Modified:
    branches/gcc-4_8-branch/gcc/fortran/ChangeLog
    branches/gcc-4_8-branch/gcc/fortran/frontend-passes.c
    branches/gcc-4_8-branch/gcc/testsuite/ChangeLog

Reply via email to