[Bug c++/97191] ICE In expand_expr_real_1, at expr.c:10234
rguenth at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Sep 24 08:51:23 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97191
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Keywords| |ice-on-valid-code
Last reconfirmed| |2020-09-24
Status|UNCONFIRMED |NEW
Known to fail| |10.2.1, 11.0
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed.
10238 gcc_assert (!exp
10239 || SCOPE_FILE_SCOPE_P (context)
10240 || context == current_function_decl
10241 || TREE_STATIC (exp)
10242 || DECL_EXTERNAL (exp)
(gdb) l
10243 /* ??? C++ creates functions that are not
TREE_STATIC. */
10244 || TREE_CODE (exp) == FUNCTION_DECL);
(gdb) p exp
$1 = <var_decl 0x7ffff697e120 a>
(gdb) p current_function_decl
$2 = <function_decl 0x7ffff696dc00 __ct_base >
(gdb) p exp->decl_minimal.context
$3 = <function_decl 0x7ffff696d400 __ct >
but the underlying reason may be a stale VLA reference due to a missing
DECL_EXPR.
More information about the Gcc-bugs
mailing list