re PR fortran/56052 ([OOP] ICE in omp_add_variable, at gimplify.c:5606)
authorJakub Jelinek <jakub@redhat.com>
Wed, 23 Jan 2013 08:43:50 +0000 (09:43 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 23 Jan 2013 08:43:50 +0000 (09:43 +0100)
commitb39968989d6ae4289c01202c45268b5651d1c222
tree37ea5f2a61404a12a6996175537607da56e7b4f8
parenta70418fc91b353d0658b561aaf3990088cb47a8d
re PR fortran/56052 ([OOP] ICE in omp_add_variable, at gimplify.c:5606)

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.

From-SVN: r195399
gcc/fortran/ChangeLog
gcc/fortran/trans-decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/gomp/pr56052.f90 [new file with mode: 0644]