[Bug target/94706] [8/9/10 Regression] class with empty base passed incorrectly with -std=c++17 on ia64
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Apr 22 10:54:39 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94706
--- Comment #16 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Would:
--- gcc/config/ia64/ia64.c.jj 2020-01-12 11:54:36.338414540 +0100
+++ gcc/config/ia64/ia64.c 2020-04-22 12:49:59.627563114 +0200
@@ -4665,7 +4665,7 @@ hfa_element_mode (const_tree type, bool
case QUAL_UNION_TYPE:
for (t = TYPE_FIELDS (type); t; t = DECL_CHAIN (t))
{
- if (TREE_CODE (t) != FIELD_DECL)
+ if (TREE_CODE (t) != FIELD_DECL || cxx17_empty_base_field_p (t))
continue;
mode = hfa_element_mode (TREE_TYPE (t), 1);
on top of https://gcc.gnu.org/pipermail/gcc-patches/2020-April/544276.html fix
that?
ia64 doesn't have any -Wpsabi warnings, so I think it isn't worth bothering
with that.
More information about the Gcc-bugs
mailing list