[Bug c++/54038] [4.7/4.8 Regression] finalize_type_size enters infinite loop becasue TYPE_NEXT_VARIANT (variant) == variant
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Jul 20 16:12:00 GMT 2012
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
--- Comment #8 from Jason Merrill <jason at gcc dot gnu.org> 2012-07-20 16:12:05 UTC ---
Author: jason
Date: Fri Jul 20 16:11:58 2012
New Revision: 189720
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=189720
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:
branches/gcc-4_7-branch/gcc/testsuite/g++.dg/other/array7.C
Modified:
branches/gcc-4_7-branch/gcc/cp/ChangeLog
branches/gcc-4_7-branch/gcc/cp/tree.c
branches/gcc-4_7-branch/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list