This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/54038] [4.7/4.8 Regression] finalize_type_size enters infinite loop becasue TYPE_NEXT_VARIANT (variant) == variant
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 20 Jul 2012 16:11:51 +0000
- Subject: [Bug c++/54038] [4.7/4.8 Regression] finalize_type_size enters infinite loop becasue TYPE_NEXT_VARIANT (variant) == variant
- Auto-submitted: auto-generated
- References: <bug-54038-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54038
--- Comment #7 from Jason Merrill <jason at gcc dot gnu.org> 2012-07-20 16:11:51 UTC ---
Author: jason
Date: Fri Jul 20 16:11:42 2012
New Revision: 189719
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=189719
Log:
PR c++/54038
* tree.c (build_cplus_array_type): Use build_cplus_array_type to build
canonical array type rather than mess with its TYPE_*_VARIANT.
Added:
trunk/gcc/testsuite/g++.dg/other/array7.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/tree.c
trunk/gcc/testsuite/ChangeLog