[Bug c++/70209] [5/6 Regression] ICE in strip_typedefs, at cp/tree.c:1377
mpolacek at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Mar 15 14:38:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70209
--- Comment #7 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
So this seems to fix the ICE and passes dg.exp testsuite.
--- a/gcc/cp/tree.c
+++ b/gcc/cp/tree.c
@@ -1462,7 +1462,8 @@ strip_typedefs (tree t, bool *remove_attributes)
if (typedef_variant_p (t))
/* Explicitly get the underlying type, as TYPE_MAIN_VARIANT doesn't
strip typedefs with attributes. */
- result = TYPE_MAIN_VARIANT (DECL_ORIGINAL_TYPE (TYPE_NAME (t)));
+ result = strip_typedefs (TYPE_MAIN_VARIANT
+ (DECL_ORIGINAL_TYPE (TYPE_NAME (t))));
else
result = TYPE_MAIN_VARIANT (t);
}
More information about the Gcc-bugs
mailing list