* [Bug c++/21687] [4.0/4.1 Regression] ICE in GC with local class inside a template function
2005-05-20 22:01 [Bug c++/21687] New: [4.0/4.1 Regression] ICE on valid code pinskia at gcc dot gnu dot org
@ 2005-07-22 23:09 ` pinskia at gcc dot gnu dot org
2005-07-22 23:22 ` pinskia at gcc dot gnu dot org
` (11 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-22 23:09 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-07-22 23:08 -------
A little further:
template <class Union>
void perform_test_trivial() {
struct check_union { void perform_test_trivial() {} };
}
--
What |Removed |Added
----------------------------------------------------------------------------
Summary|[4.0/4.1 Regression] ICE in |[4.0/4.1 Regression] ICE in
|GC with local class inside a|GC with local class inside a
|function inside a template |template function
|class |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21687
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/21687] [4.0/4.1 Regression] ICE in GC with local class inside a template function
2005-05-20 22:01 [Bug c++/21687] New: [4.0/4.1 Regression] ICE on valid code pinskia at gcc dot gnu dot org
2005-07-22 23:09 ` [Bug c++/21687] [4.0/4.1 Regression] ICE in GC with local class inside a template function pinskia at gcc dot gnu dot org
@ 2005-07-22 23:22 ` pinskia at gcc dot gnu dot org
2005-07-23 0:43 ` pinskia at gcc dot gnu dot org
` (10 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-22 23:22 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-07-22 23:10 -------
It was broke before 20040909.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21687
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/21687] [4.0/4.1 Regression] ICE in GC with local class inside a template function
2005-05-20 22:01 [Bug c++/21687] New: [4.0/4.1 Regression] ICE on valid code pinskia at gcc dot gnu dot org
2005-07-22 23:09 ` [Bug c++/21687] [4.0/4.1 Regression] ICE in GC with local class inside a template function pinskia at gcc dot gnu dot org
2005-07-22 23:22 ` pinskia at gcc dot gnu dot org
@ 2005-07-23 0:43 ` pinskia at gcc dot gnu dot org
2005-07-23 15:54 ` janis at gcc dot gnu dot org
` (9 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-23 0:43 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-07-22 23:48 -------
Janis,
Could you figure out which patch caused this bug?
You can use the testcase in comment #4 or #5. Just use
"--param ggc-min-expand=0 --param ggc-min-heapsize=0" to reproduce it.
Thanks,
Andrew Pinski
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |janis at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21687
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/21687] [4.0/4.1 Regression] ICE in GC with local class inside a template function
2005-05-20 22:01 [Bug c++/21687] New: [4.0/4.1 Regression] ICE on valid code pinskia at gcc dot gnu dot org
` (2 preceding siblings ...)
2005-07-23 0:43 ` pinskia at gcc dot gnu dot org
@ 2005-07-23 15:54 ` janis at gcc dot gnu dot org
2005-07-23 16:26 ` pinskia at gcc dot gnu dot org
` (8 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: janis at gcc dot gnu dot org @ 2005-07-23 15:54 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From janis at gcc dot gnu dot org 2005-07-23 15:51 -------
A regression hunt on powerpc-linux using the test case from comment #5 with the
options from comment #7 identified the following patch from rth:
http://gcc.gnu.org/ml/gcc-cvs/2004-06/msg00641.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21687
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/21687] [4.0/4.1 Regression] ICE in GC with local class inside a template function
2005-05-20 22:01 [Bug c++/21687] New: [4.0/4.1 Regression] ICE on valid code pinskia at gcc dot gnu dot org
` (3 preceding siblings ...)
2005-07-23 15:54 ` janis at gcc dot gnu dot org
@ 2005-07-23 16:26 ` pinskia at gcc dot gnu dot org
2005-07-25 18:52 ` rth at gcc dot gnu dot org
` (7 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-23 16:26 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-07-23 15:54 -------
Thanks Janis.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |rth at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21687
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/21687] [4.0/4.1 Regression] ICE in GC with local class inside a template function
2005-05-20 22:01 [Bug c++/21687] New: [4.0/4.1 Regression] ICE on valid code pinskia at gcc dot gnu dot org
` (4 preceding siblings ...)
2005-07-23 16:26 ` pinskia at gcc dot gnu dot org
@ 2005-07-25 18:52 ` rth at gcc dot gnu dot org
2005-08-25 16:46 ` pinskia at gcc dot gnu dot org
` (6 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: rth at gcc dot gnu dot org @ 2005-07-25 18:52 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From rth at gcc dot gnu dot org 2005-07-25 18:18 -------
Whatever you might think, this is not my bug.
This is the C++ front end calling ggc_collect in the middle of parsing a
function. I can't tell whether or not there is a ggc_push_context missing
when we begin parsing the local class, or if we simply shouldn't have the
collect in expand_or_defer_fn.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21687
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/21687] [4.0/4.1 Regression] ICE in GC with local class inside a template function
2005-05-20 22:01 [Bug c++/21687] New: [4.0/4.1 Regression] ICE on valid code pinskia at gcc dot gnu dot org
` (5 preceding siblings ...)
2005-07-25 18:52 ` rth at gcc dot gnu dot org
@ 2005-08-25 16:46 ` pinskia at gcc dot gnu dot org
2005-08-31 22:10 ` mmitchel at gcc dot gnu dot org
` (5 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-25 16:46 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-08-25 16:45 -------
*** Bug 23562 has been marked as a duplicate of this bug. ***
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21687
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/21687] [4.0/4.1 Regression] ICE in GC with local class inside a template function
2005-05-20 22:01 [Bug c++/21687] New: [4.0/4.1 Regression] ICE on valid code pinskia at gcc dot gnu dot org
` (6 preceding siblings ...)
2005-08-25 16:46 ` pinskia at gcc dot gnu dot org
@ 2005-08-31 22:10 ` mmitchel at gcc dot gnu dot org
2005-09-02 18:23 ` cvs-commit at gcc dot gnu dot org
` (4 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-08-31 22:10 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |mark at codesourcery dot com
|dot org |
Status|NEW |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21687
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/21687] [4.0/4.1 Regression] ICE in GC with local class inside a template function
2005-05-20 22:01 [Bug c++/21687] New: [4.0/4.1 Regression] ICE on valid code pinskia at gcc dot gnu dot org
` (7 preceding siblings ...)
2005-08-31 22:10 ` mmitchel at gcc dot gnu dot org
@ 2005-09-02 18:23 ` cvs-commit at gcc dot gnu dot org
2005-09-02 18:31 ` cvs-commit at gcc dot gnu dot org
` (3 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-09-02 18:23 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-09-02 18:23 -------
Subject: Bug 21687
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-4_0-branch
Changes by: mmitchel@gcc.gnu.org 2005-09-02 18:23:24
Modified files:
gcc/cp : parser.c
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/g++.dg/other: gc3.C
Log message:
PR c++/21687
* parser.c (cp_parser_class_specifier): Push/pop GC contexts
around functions in local classes.
PR c++/21687
* g++.dg/other/gc3.C: New test.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/parser.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.319.2.14&r2=1.319.2.15
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.5084.2.368&r2=1.5084.2.369
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/other/gc3.C.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.2.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21687
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/21687] [4.0/4.1 Regression] ICE in GC with local class inside a template function
2005-05-20 22:01 [Bug c++/21687] New: [4.0/4.1 Regression] ICE on valid code pinskia at gcc dot gnu dot org
` (8 preceding siblings ...)
2005-09-02 18:23 ` cvs-commit at gcc dot gnu dot org
@ 2005-09-02 18:31 ` cvs-commit at gcc dot gnu dot org
2005-09-02 18:31 ` mmitchel at gcc dot gnu dot org
` (2 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-09-02 18:31 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-09-02 18:31 -------
Subject: Bug 21687
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: mmitchel@gcc.gnu.org 2005-09-02 18:29:33
Modified files:
gcc/cp : ChangeLog parser.c
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/g++.dg/other: gc3.C
Log message:
PR c++/21687
* parser.c (cp_parser_class_specifier): Push/pop GC contexts
around functions in local classes.
PR c++/21687
* g++.dg/other/gc3.C: New test.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.4866&r2=1.4867
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/parser.c.diff?cvsroot=gcc&r1=1.353&r2=1.354
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.5997&r2=1.5998
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/other/gc3.C.diff?cvsroot=gcc&r1=1.1&r2=1.2
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21687
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/21687] [4.0/4.1 Regression] ICE in GC with local class inside a template function
2005-05-20 22:01 [Bug c++/21687] New: [4.0/4.1 Regression] ICE on valid code pinskia at gcc dot gnu dot org
` (9 preceding siblings ...)
2005-09-02 18:31 ` cvs-commit at gcc dot gnu dot org
@ 2005-09-02 18:31 ` mmitchel at gcc dot gnu dot org
2005-09-03 18:19 ` cvs-commit at gcc dot gnu dot org
2005-09-03 18:30 ` cvs-commit at gcc dot gnu dot org
12 siblings, 0 replies; 14+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-09-02 18:31 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From mmitchel at gcc dot gnu dot org 2005-09-02 18:31 -------
Fixed in 4.0.2.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21687
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/21687] [4.0/4.1 Regression] ICE in GC with local class inside a template function
2005-05-20 22:01 [Bug c++/21687] New: [4.0/4.1 Regression] ICE on valid code pinskia at gcc dot gnu dot org
` (10 preceding siblings ...)
2005-09-02 18:31 ` mmitchel at gcc dot gnu dot org
@ 2005-09-03 18:19 ` cvs-commit at gcc dot gnu dot org
2005-09-03 18:30 ` cvs-commit at gcc dot gnu dot org
12 siblings, 0 replies; 14+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-09-03 18:19 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-09-03 18:18 -------
Subject: Bug 21687
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: mmitchel@gcc.gnu.org 2005-09-03 18:18:48
Modified files:
gcc/cp : ChangeLog decl2.c parser.c semantics.c
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/g++.dg/ext: static1.C
Log message:
PR c++/23699
* decl2.c (mark_used): Always instantiate static data members
initialized by constant expressions.
* pt.c (instantiate_decl): Instantiate the initializers for static
data members initialized by constant expressions.
PR c++/21687
* semantics.c (expand_or_defer_fn): Do not call ggc_collect when
finishing processing for a template function in a local class.
Revert:
2005-09-02 Mark Mitchell <mark@codesourcery.com>
* parser.c (cp_parser_class_specifier): Push/pop GC contexts
around functions in local classes.
PR c++/23699
* g++.dg/ext/static1.C: New test.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.4867&r2=1.4868
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/decl2.c.diff?cvsroot=gcc&r1=1.795&r2=1.796
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/parser.c.diff?cvsroot=gcc&r1=1.354&r2=1.355
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/semantics.c.diff?cvsroot=gcc&r1=1.483&r2=1.484
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.5999&r2=1.6000
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/ext/static1.C.diff?cvsroot=gcc&r1=NONE&r2=1.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21687
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/21687] [4.0/4.1 Regression] ICE in GC with local class inside a template function
2005-05-20 22:01 [Bug c++/21687] New: [4.0/4.1 Regression] ICE on valid code pinskia at gcc dot gnu dot org
` (11 preceding siblings ...)
2005-09-03 18:19 ` cvs-commit at gcc dot gnu dot org
@ 2005-09-03 18:30 ` cvs-commit at gcc dot gnu dot org
12 siblings, 0 replies; 14+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-09-03 18:30 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-09-03 18:29 -------
Subject: Bug 21687
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-4_0-branch
Changes by: mmitchel@gcc.gnu.org 2005-09-03 18:29:47
Modified files:
gcc/testsuite : ChangeLog
gcc/cp : ChangeLog decl2.c parser.c pt.c semantics.c
Added files:
gcc/testsuite/g++.dg/ext: static1.C
Log message:
PR c++/23699
* decl2.c (mark_used): Always instantiate static data members
initialized by constant expressions.
* pt.c (instantiate_decl): Instantiate the initializers for static
data members initialized by constant expressions.
PR c++/21687
* semantics.c (expand_or_defer_fn): Do not call ggc_collect when
finishing processing for a template function in a local class.
Revert:
2005-09-02 Mark Mitchell <mark@codesourcery.com>
* parser.c (cp_parser_class_specifier): Push/pop GC contexts
around functions in local classes.
PR c++/23699
* g++.dg/ext/static1.C: New test.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.5084.2.369&r2=1.5084.2.370
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/ext/static1.C.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.4648.2.88&r2=1.4648.2.89
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/decl2.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.770.2.4&r2=1.770.2.5
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/parser.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.319.2.15&r2=1.319.2.16
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/pt.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.978.2.20&r2=1.978.2.21
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/semantics.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.463.2.6&r2=1.463.2.7
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21687
^ permalink raw reply [flat|nested] 14+ messages in thread