[Bug fortran/56052] [4.7/4.8 Regression] [OOP] ICE in omp_add_variable, at gimplify.c:5606
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Jan 21 17:21:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56052
--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> 2013-01-21 17:20:11 UTC ---
Created attachment 29243
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29243
gcc48-pr56052.patch
Anyway, the following patch fixes the ICE, by making the artificial var
DECL_ARTIFICIAL (and no need to emit it into debug info anyway).
If it is DECL_ARTIFICIAL, then the Fortran privatize_by_reference hook won't
return true on it, even when it has POINTER_TYPE type.
More information about the Gcc-bugs
mailing list