https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99324
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed| |2021-03-02
Status|UNCONFIRMED |NEW
Ever confirmed|0 |1
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed.
914 /* Also mark the artificial SSA_NAME that points to the partition of
X. */
915 if (TREE_CODE (x) == VAR_DECL
916 && !DECL_EXTERNAL (x)
917 && !TREE_STATIC (x)
918 && cfun->gimple_df != NULL
919 && cfun->gimple_df->decls_to_pointers != NULL)
920 {
(gdb) p cfun
$1 = (function *) 0x0
I suppose this could be made more robust by checking for cfun being non-NULL
or checking currently_expanding_to_rtl.