public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c++/47833] New: ICE during GC in gt_ggc_mx_pending_template @ 2011-02-21 12:07 jakub at gcc dot gnu.org 2011-02-21 12:21 ` [Bug c++/47833] " jakub at gcc dot gnu.org ` (3 more replies) 0 siblings, 4 replies; 5+ messages in thread From: jakub at gcc dot gnu.org @ 2011-02-21 12:07 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47833 Summary: ICE during GC in gt_ggc_mx_pending_template Product: gcc Version: 4.6.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned@gcc.gnu.org ReportedBy: jakub@gcc.gnu.org template <int> int foo () throw () { return 0; } int foo () { if (false) { #define A(N) foo<N> (); #define B(N) A(N##0) A(N##1) A(N##2) A(N##3) A(N##4) A(N##5) A(N##6) A(N##7) A(N##8) A(N##9) #define C(N) B(N##0) B(N##1) B(N##2) B(N##3) B(N##4) B(N##5) B(N##6) B(N##7) B(N##8) B(N##9) #define D(N) C(N##0) C(N##1) C(N##2) C(N##3) C(N##4) C(N##5) C(N##6) C(N##7) C(N##8) C(N##9) #define E(N) D(N##0) D(N##1) D(N##2) D(N##3) D(N##4) D(N##5) D(N##6) D(N##7) D(N##8) D(N##9) #define F(N) E(N##0) E(N##1) E(N##2) E(N##3) E(N##4) E(N##5) E(N##6) E(N##7) E(N##8) E(N##9) #define G(N) F(N##0) F(N##1) F(N##2) F(N##3) F(N##4) F(N##5) F(N##6) F(N##7) F(N##8) F(N##9) G(1) } return 0; } ICEs in 4.5/4.6, because the pending_templates list is too long and GC recurses on it. ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/47833] ICE during GC in gt_ggc_mx_pending_template 2011-02-21 12:07 [Bug c++/47833] New: ICE during GC in gt_ggc_mx_pending_template jakub at gcc dot gnu.org @ 2011-02-21 12:21 ` jakub at gcc dot gnu.org 2011-02-21 17:43 ` jakub at gcc dot gnu.org ` (2 subsequent siblings) 3 siblings, 0 replies; 5+ messages in thread From: jakub at gcc dot gnu.org @ 2011-02-21 12:21 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47833 Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |ASSIGNED Last reconfirmed| |2011.02.21 12:07:27 AssignedTo|unassigned at gcc dot |jakub at gcc dot gnu.org |gnu.org | Ever Confirmed|0 |1 --- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-02-21 12:07:27 UTC --- Created attachment 23424 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23424 gcc46-pr47833.patch Untested fix. The testcase takes over a minute to compile at -O0 on a fast box, so is not suitable for regression testing. ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/47833] ICE during GC in gt_ggc_mx_pending_template 2011-02-21 12:07 [Bug c++/47833] New: ICE during GC in gt_ggc_mx_pending_template jakub at gcc dot gnu.org 2011-02-21 12:21 ` [Bug c++/47833] " jakub at gcc dot gnu.org @ 2011-02-21 17:43 ` jakub at gcc dot gnu.org 2011-02-23 2:00 ` jakub at gcc dot gnu.org 2011-02-23 7:00 ` jakub at gcc dot gnu.org 3 siblings, 0 replies; 5+ messages in thread From: jakub at gcc dot gnu.org @ 2011-02-21 17:43 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47833 --- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-02-21 17:32:22 UTC --- Different testcase at https://bugzilla.redhat.com/attachment.cgi?id=479920 ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/47833] ICE during GC in gt_ggc_mx_pending_template 2011-02-21 12:07 [Bug c++/47833] New: ICE during GC in gt_ggc_mx_pending_template jakub at gcc dot gnu.org 2011-02-21 12:21 ` [Bug c++/47833] " jakub at gcc dot gnu.org 2011-02-21 17:43 ` jakub at gcc dot gnu.org @ 2011-02-23 2:00 ` jakub at gcc dot gnu.org 2011-02-23 7:00 ` jakub at gcc dot gnu.org 3 siblings, 0 replies; 5+ messages in thread From: jakub at gcc dot gnu.org @ 2011-02-23 2:00 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47833 --- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-02-23 00:47:41 UTC --- Author: jakub Date: Wed Feb 23 00:47:38 2011 New Revision: 170424 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=170424 Log: PR c++/47833 * pt.c (struct pending_template): Add chain_next GTY option. * decl.c (struct named_label_use_entry): Likewise. Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/decl.c trunk/gcc/cp/pt.c ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/47833] ICE during GC in gt_ggc_mx_pending_template 2011-02-21 12:07 [Bug c++/47833] New: ICE during GC in gt_ggc_mx_pending_template jakub at gcc dot gnu.org ` (2 preceding siblings ...) 2011-02-23 2:00 ` jakub at gcc dot gnu.org @ 2011-02-23 7:00 ` jakub at gcc dot gnu.org 3 siblings, 0 replies; 5+ messages in thread From: jakub at gcc dot gnu.org @ 2011-02-23 7:00 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47833 Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-02-23 00:54:53 UTC --- Fixed. ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-02-23 0:55 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2011-02-21 12:07 [Bug c++/47833] New: ICE during GC in gt_ggc_mx_pending_template jakub at gcc dot gnu.org 2011-02-21 12:21 ` [Bug c++/47833] " jakub at gcc dot gnu.org 2011-02-21 17:43 ` jakub at gcc dot gnu.org 2011-02-23 2:00 ` jakub at gcc dot gnu.org 2011-02-23 7:00 ` jakub at gcc dot gnu.org
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).