http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56052
--- Comment #10 from Jakub Jelinek <jakub at gcc dot gnu.org> 2013-02-01 14:15:31 UTC --- Author: jakub Date: Fri Feb 1 14:15:21 2013 New Revision: 195662 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=195662 Log: Backported from mainline 2013-01-23 Jakub Jelinek <ja...@redhat.com> PR fortran/56052 * trans-decl.c (gfc_get_symbol_decl): Set DECL_ARTIFICIAL and DECL_IGNORED_P on select_type_temporary and don't set DECL_BY_REFERENCE. * gfortran.dg/gomp/pr56052.f90: New test. Added: branches/gcc-4_7-branch/gcc/testsuite/gfortran.dg/gomp/pr56052.f90 Modified: branches/gcc-4_7-branch/gcc/fortran/ChangeLog branches/gcc-4_7-branch/gcc/fortran/trans-decl.c branches/gcc-4_7-branch/gcc/testsuite/ChangeLog