This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/83187] [8 regression] internal compiler error: in get_alias_set, at alias.c:923
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 28 Nov 2017 11:37:03 +0000
- Subject: [Bug c++/83187] [8 regression] internal compiler error: in get_alias_set, at alias.c:923
- Auto-submitted: auto-generated
- References: <bug-83187-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83187
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
The problem is that we have a type (complex double) where
TYPE_CANONICAL (TYPE_MAIN_VARIANT (t)) != TYPE_MAIN_VARIANT (TYPE_CANONICAL
(TYPE_MAIN_VARIANT (t)))
which get_alias_set code asserts on, because it does:
t = TYPE_MAIN_VARIANT (t);
...
if (TYPE_STRUCTURAL_EQUALITY_P (t))
...
else
t = TYPE_CANONICAL (t);
gcc_checking_assert (t == TYPE_MAIN_VARIANT (t));
Nathan, can you please have a look?