This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/33185] [4.3 Regression] ICE: canonical types differ for identical types T [] and T []
- From: "dgregor at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Sep 2007 12:15:18 -0000
- Subject: [Bug c++/33185] [4.3 Regression] ICE: canonical types differ for identical types T [] and T []
- References: <bug-33185-12387@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #10 from dgregor at gcc dot gnu dot org 2007-09-24 12:15 -------
Subject: Bug 33185
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=33185