https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71499
Thomas Schwinge <tschwinge at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2016-06-29 CC| |tschwinge at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #2 from Thomas Schwinge <tschwinge at gcc dot gnu.org> --- The is the OpenACC variant of OpenMP's PR71535. You need to add "#pragma acc routine" for function "test". (Of course, we shouldn't run into an ICE nevertheless.)