re PR fortran/71688 (ICE in analyze, at cgraphunit.c:632 with -fcoarray=lib)
authorMartin Jambor <mjambor@suse.cz>
Tue, 19 Jul 2016 15:40:43 +0000 (17:40 +0200)
committerMartin Jambor <jamborm@gcc.gnu.org>
Tue, 19 Jul 2016 15:40:43 +0000 (17:40 +0200)
commite7980addd0537e0d053371ef8094d019ac52dfbf
tree1bdadaa99c0f55fab63543b26cc2bf7a383f5924
parent13e889530d0da219afcbcd78c768688593dd5257
re PR fortran/71688 (ICE in analyze, at cgraphunit.c:632 with -fcoarray=lib)

Fix PR fortran/71688

2016-07-19  Martin Jambor  <mjambor@suse.cz>

        PR fortran/71688
        * trans-decl.c (gfc_generate_function_code): Use cgraph_get_create_node
        rather than cgraph_create_node to get a call graph node.

testsuite/
        gfortran.dg/pr71688.f90: New test.

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