https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102310
Martin Jambor <jamborm at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jamborm at gcc dot gnu.org --- Comment #6 from Martin Jambor <jamborm at gcc dot gnu.org> --- Both the ICE in visit_ref_for_mod_analysis and the ICE in expand_expr_real_1 happen when there the IL includes a PARM_DECL of a different function. So I suspect that OpenACC outlining or something carried over a PARM_DECL from one function to another, forgetting to properly copy it. In my experience, using dumps with UIDs (i.g. with -fdump-tree-all-uid) helps tremendously when debugging these.