PR c++/80534
commitfb8ab1f8dd4529f62f7f0fa0b57f549c56da825d
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 27 Apr 2017 13:42:37 +0000 (27 13:42 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 27 Apr 2017 13:42:37 +0000 (27 13:42 +0000)
tree69656f2b41db491442a54946801bbcfbc2ded408
parent62c62e4bdd4bb42509d5d23d7d1b5c8066672601
PR c++/80534
* tree.c (type_cache_hasher::equal): Only compare
TYPE_TYPELESS_STORAGE flag on non-aggregate element types.
(build_array_type_1): Only hash TYPE_TYPELESS_STORAGE flag on
non-aggregate element types.
* tree.h (TYPE_TYPELESS_STORAGE): Fix comment typo, add more details
about the flag on ARRAY_TYPEs in the comment, formatting fix.
c-family/
* c-common.c (complete_array_type): Only hash TYPE_TYPELESS_STORAGE
flag on non-aggregate element types.
testsuite/
* g++.dg/other/pr80534-1.C: New test.
* g++.dg/other/pr80534-2.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@247334 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/c-family/ChangeLog
gcc/c-family/c-common.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/other/pr80534-1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/other/pr80534-2.C [new file with mode: 0644]
gcc/tree.c
gcc/tree.h