This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/31724] [4.3 Regression] More "same canonical type node" fun
- 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: 1 May 2007 12:32:17 -0000
- Subject: [Bug c++/31724] [4.3 Regression] More "same canonical type node" fun
- References: <bug-31724-12387@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #9 from dgregor at gcc dot gnu dot org 2007-05-01 13:32 -------
The easy fix is to SET_TYPE_STRUCTURAL_EQUALITY (fulltype), which will force
structural equality checks rather than use canonical types. I usually don't
like this solution, but it's better than duplicating all of the
build_array_type/build_cplus_array_type machinery.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31724