https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67044
Dominique d'Humieres <dominiq at lps dot ens.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2015-08-29 CC| |mikael at gcc dot gnu.org, | |pault at gcc dot gnu.org, | |vehre at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> --- Confirmed from 4.8 up to trunk (6.0 configured with --enable-checking=release). When 6.0 is configured with the default value of --enable-checking, the ICE is internal compiler error: tree check: expected function_type or method_type, have pointer_type in gimplify_call_expr, at gimplify.c:2391 The ICE with 4.7 is pr67044.f90: In function 'cont_add': pr67044.f90:39:0: error: non-function in gimple call D.1930 = unpck.4 (&D.1900, &D.1901); pr67044.f90:39: confused by earlier errors, bailing out and with 4.6 pr67044.f90: In function 'cont_add': pr67044.f90:49:0: internal compiler error: in cgraph_node, at cgraph.c:495 The code compiles if the line allocate( z%f , source=unpck(x)+unpck(y) ) is replaced with allocate( z%f , source=unpck(x) )