[Bug c++/33112] ICE : canonical types differ for identical types const _CharT* [14] and const _CharT* [14]
dgregor at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon Sep 24 12:15:00 GMT 2007
------- Comment #5 from dgregor at gcc dot gnu dot org 2007-09-24 12:15 -------
Subject: Bug 33112
Author: dgregor
Date: Mon Sep 24 12:14:57 2007
New Revision: 128711
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=128711
Log:
2007-09-24 Douglas Gregor <doug.gregor@gmail.com>
PR c++/33112
PR c++/33185
* tree.c (cplus_array_compare): Compare pointers, not types.
(build_cplus_array_type_1): Store new array type into the hash
table before building the canonical type; build the canonical type
correctly.
(cp_build_qualified_type_real): Put all of the array types with
cv-qualified element types into the C++ array hash table, built as
variants of the unqualified versions.
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/tree.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33112
More information about the Gcc-bugs
mailing list