public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/25632] New: [4.1 Regression] ICE in make_decl_rtl, at varasm.c:890
@ 2006-01-02 10:38 rguenth at gcc dot gnu dot org
2006-01-02 10:38 ` [Bug middle-end/25632] " rguenth at gcc dot gnu dot org
` (22 more replies)
0 siblings, 23 replies; 24+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2006-01-02 10:38 UTC (permalink / raw)
To: gcc-bugs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 928 bytes --]
GNU C++ version 4.1.0 20051221 (prerelease) ICEs on the attached testcase with
> g++ nvl141082.min.i
/suse/rguenther/export/nvl141082.min.i: In function SI_RETURN
SiGetPeerName(SI_SOCK*, SAP_RAW*, SAP_USHORT*):
/suse/rguenther/export/nvl141082.min.i:48: internal compiler error: in
make_decl_rtl, at varasm.c:890
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.suse.de/feedback> for instructions.
--
Summary: [4.1 Regression] ICE in make_decl_rtl, at varasm.c:890
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: critical
Priority: P3
Component: middle-end
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: rguenth at gcc dot gnu dot org
GCC target triplet: ia64-*-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25632
^ permalink raw reply [flat|nested] 24+ messages in thread
* [Bug middle-end/25632] [4.1 Regression] ICE in make_decl_rtl, at varasm.c:890
2006-01-02 10:38 [Bug middle-end/25632] New: [4.1 Regression] ICE in make_decl_rtl, at varasm.c:890 rguenth at gcc dot gnu dot org
@ 2006-01-02 10:38 ` rguenth at gcc dot gnu dot org
2006-01-02 16:36 ` [Bug c++/25632] [4.1/4.2 " pinskia at gcc dot gnu dot org
` (21 subsequent siblings)
22 siblings, 0 replies; 24+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2006-01-02 10:38 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from rguenth at gcc dot gnu dot org 2006-01-02 10:38 -------
Created an attachment (id=10575)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10575&action=view)
reduced testcase
testcase
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25632
^ permalink raw reply [flat|nested] 24+ messages in thread
* [Bug c++/25632] [4.1/4.2 Regression] ICE in make_decl_rtl, at varasm.c:890
2006-01-02 10:38 [Bug middle-end/25632] New: [4.1 Regression] ICE in make_decl_rtl, at varasm.c:890 rguenth at gcc dot gnu dot org
2006-01-02 10:38 ` [Bug middle-end/25632] " rguenth at gcc dot gnu dot org
@ 2006-01-02 16:36 ` pinskia at gcc dot gnu dot org
2006-01-02 16:37 ` [Bug c++/25632] [4.0/4.1/4.2 " pinskia at gcc dot gnu dot org
` (20 subsequent siblings)
22 siblings, 0 replies; 24+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-02 16:36 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from pinskia at gcc dot gnu dot org 2006-01-02 16:36 -------
Reduced testcase (even though it gives a different ICE, it is the same bug as
someone is forgetting to unshare_expr somewhere):
struct sockaddr_un {
char sun_path[1];
};
const unsigned SI_SUN_HEAD_LEN = (long)(((struct sockaddr_un *)0)->sun_path);
int SiGetPeerName ()
{
return SI_SUN_HEAD_LEN;
}
int SiAccept ()
{
return SI_SUN_HEAD_LEN;
}
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Component|middle-end |c++
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2006-01-02 16:36:18
date| |
Summary|[4.1 Regression] ICE in |[4.1/4.2 Regression] ICE in
|make_decl_rtl, at |make_decl_rtl, at
|varasm.c:890 |varasm.c:890
Target Milestone|--- |4.1.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25632
^ permalink raw reply [flat|nested] 24+ messages in thread
* [Bug c++/25632] [4.0/4.1/4.2 Regression] ICE in make_decl_rtl, at varasm.c:890
2006-01-02 10:38 [Bug middle-end/25632] New: [4.1 Regression] ICE in make_decl_rtl, at varasm.c:890 rguenth at gcc dot gnu dot org
2006-01-02 10:38 ` [Bug middle-end/25632] " rguenth at gcc dot gnu dot org
2006-01-02 16:36 ` [Bug c++/25632] [4.1/4.2 " pinskia at gcc dot gnu dot org
@ 2006-01-02 16:37 ` pinskia at gcc dot gnu dot org
2006-01-03 0:24 ` [Bug c++/25632] [4.0/4.1/4.2 Regression] ICE with const int copied into two different functions mmitchel at gcc dot gnu dot org
` (19 subsequent siblings)
22 siblings, 0 replies; 24+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-02 16:37 UTC (permalink / raw)
To: gcc-bugs
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to fail| |4.0.3 4.1.0 4.2.0
Known to work| |4.0.1
Summary|[4.1/4.2 Regression] ICE in |[4.0/4.1/4.2 Regression] ICE
|make_decl_rtl, at |in make_decl_rtl, at
|varasm.c:890 |varasm.c:890
Target Milestone|4.1.0 |4.0.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25632
^ permalink raw reply [flat|nested] 24+ messages in thread
* [Bug c++/25632] [4.0/4.1/4.2 Regression] ICE with const int copied into two different functions
2006-01-02 10:38 [Bug middle-end/25632] New: [4.1 Regression] ICE in make_decl_rtl, at varasm.c:890 rguenth at gcc dot gnu dot org
` (2 preceding siblings ...)
2006-01-02 16:37 ` [Bug c++/25632] [4.0/4.1/4.2 " pinskia at gcc dot gnu dot org
@ 2006-01-03 0:24 ` mmitchel at gcc dot gnu dot org
2006-01-03 0:30 ` rakdver at gcc dot gnu dot org
` (18 subsequent siblings)
22 siblings, 0 replies; 24+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-01-03 0:24 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from mmitchel at gcc dot gnu dot org 2006-01-03 00:24 -------
ICE on valid, plausible code.
--
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25632
^ permalink raw reply [flat|nested] 24+ messages in thread
* [Bug c++/25632] [4.0/4.1/4.2 Regression] ICE with const int copied into two different functions
2006-01-02 10:38 [Bug middle-end/25632] New: [4.1 Regression] ICE in make_decl_rtl, at varasm.c:890 rguenth at gcc dot gnu dot org
` (3 preceding siblings ...)
2006-01-03 0:24 ` [Bug c++/25632] [4.0/4.1/4.2 Regression] ICE with const int copied into two different functions mmitchel at gcc dot gnu dot org
@ 2006-01-03 0:30 ` rakdver at gcc dot gnu dot org
2006-01-03 11:31 ` rakdver at gcc dot gnu dot org
` (17 subsequent siblings)
22 siblings, 0 replies; 24+ messages in thread
From: rakdver at gcc dot gnu dot org @ 2006-01-03 0:30 UTC (permalink / raw)
To: gcc-bugs
--
rakdver at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |rakdver at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25632
^ permalink raw reply [flat|nested] 24+ messages in thread
* [Bug c++/25632] [4.0/4.1/4.2 Regression] ICE with const int copied into two different functions
2006-01-02 10:38 [Bug middle-end/25632] New: [4.1 Regression] ICE in make_decl_rtl, at varasm.c:890 rguenth at gcc dot gnu dot org
` (4 preceding siblings ...)
2006-01-03 0:30 ` rakdver at gcc dot gnu dot org
@ 2006-01-03 11:31 ` rakdver at gcc dot gnu dot org
2006-01-03 14:12 ` pinskia at gcc dot gnu dot org
` (16 subsequent siblings)
22 siblings, 0 replies; 24+ messages in thread
From: rakdver at gcc dot gnu dot org @ 2006-01-03 11:31 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from rakdver at gcc dot gnu dot org 2006-01-03 11:31 -------
Adding unshare_expr to constant_value_1 fixes the problem, but causes bootstrap
failure.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25632
^ permalink raw reply [flat|nested] 24+ messages in thread
* [Bug c++/25632] [4.0/4.1/4.2 Regression] ICE with const int copied into two different functions
2006-01-02 10:38 [Bug middle-end/25632] New: [4.1 Regression] ICE in make_decl_rtl, at varasm.c:890 rguenth at gcc dot gnu dot org
` (5 preceding siblings ...)
2006-01-03 11:31 ` rakdver at gcc dot gnu dot org
@ 2006-01-03 14:12 ` pinskia at gcc dot gnu dot org
2006-01-03 22:40 ` rakdver at gcc dot gnu dot org
` (15 subsequent siblings)
22 siblings, 0 replies; 24+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-03 14:12 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from pinskia at gcc dot gnu dot org 2006-01-03 14:12 -------
Caused by either:
2005-10-16 Mark Mitchell <mark@codesourcery.com>
PR c++/24389
* decl2.c (mark_used): Use uses_template_parms instead of
dependent_type_p.
* init.c (constant_value_1): Handle uninstantiated templates
specially.
* pt.c (instantiate_decl): Add sanity check.
or
2005-10-11 Mark Mitchell <mark@codesourcery.com>
PR c++/21089
* call.c (convert_like_real): Use decl_constant_value, not
integral_constant_value.
* init.c (constant_value_1): New function.
(integral_constant_value): Use it.
(decl_constant_value): Likewise.
* typeck.c (decay_conversion): Use decl_constant_value, not
integral_constant_value.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25632
^ permalink raw reply [flat|nested] 24+ messages in thread
* [Bug c++/25632] [4.0/4.1/4.2 Regression] ICE with const int copied into two different functions
2006-01-02 10:38 [Bug middle-end/25632] New: [4.1 Regression] ICE in make_decl_rtl, at varasm.c:890 rguenth at gcc dot gnu dot org
` (6 preceding siblings ...)
2006-01-03 14:12 ` pinskia at gcc dot gnu dot org
@ 2006-01-03 22:40 ` rakdver at gcc dot gnu dot org
2006-01-03 23:01 ` mark at codesourcery dot com
` (14 subsequent siblings)
22 siblings, 0 replies; 24+ messages in thread
From: rakdver at gcc dot gnu dot org @ 2006-01-03 22:40 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from rakdver at gcc dot gnu dot org 2006-01-03 22:40 -------
Patch:
http://gcc.gnu.org/ml/gcc-patches/2006-01/msg00136.html
--
rakdver at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
URL| |http://gcc.gnu.org/ml/gcc-
| |patches/2006-
| |01/msg00136.html
Keywords| |patch
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25632
^ permalink raw reply [flat|nested] 24+ messages in thread
* [Bug c++/25632] [4.0/4.1/4.2 Regression] ICE with const int copied into two different functions
2006-01-02 10:38 [Bug middle-end/25632] New: [4.1 Regression] ICE in make_decl_rtl, at varasm.c:890 rguenth at gcc dot gnu dot org
` (7 preceding siblings ...)
2006-01-03 22:40 ` rakdver at gcc dot gnu dot org
@ 2006-01-03 23:01 ` mark at codesourcery dot com
2006-01-03 23:24 ` rakdver at atrey dot karlin dot mff dot cuni dot cz
` (13 subsequent siblings)
22 siblings, 0 replies; 24+ messages in thread
From: mark at codesourcery dot com @ 2006-01-03 23:01 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from mark at codesourcery dot com 2006-01-03 23:01 -------
Subject: Re: [4.0/4.1/4.2 Regression] ICE with const int copied
into two different functions
rakdver at gcc dot gnu dot org wrote:
> ------- Comment #6 from rakdver at gcc dot gnu dot org 2006-01-03 22:40 -------
> Patch:
>
> http://gcc.gnu.org/ml/gcc-patches/2006-01/msg00136.html
This patch is not OK, but it's close.
We should not call unshare_expr on DECL_INITIAL until after the
mark_used call, as static data members in templates will not have proper
initializers until after that point. Also, there's no need to unshare
*before* calling fold_non_dependent_expr.
In fact, there's no need to unshare before the return statement at the
end of the function. That will avoid creating trees that will only be
thrown away later.
So, why not just do:
return unshare_expr (decl);
at the end of the function?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25632
^ permalink raw reply [flat|nested] 24+ messages in thread
* [Bug c++/25632] [4.0/4.1/4.2 Regression] ICE with const int copied into two different functions
2006-01-02 10:38 [Bug middle-end/25632] New: [4.1 Regression] ICE in make_decl_rtl, at varasm.c:890 rguenth at gcc dot gnu dot org
` (8 preceding siblings ...)
2006-01-03 23:01 ` mark at codesourcery dot com
@ 2006-01-03 23:24 ` rakdver at atrey dot karlin dot mff dot cuni dot cz
2006-01-03 23:29 ` rakdver at atrey dot karlin dot mff dot cuni dot cz
` (12 subsequent siblings)
22 siblings, 0 replies; 24+ messages in thread
From: rakdver at atrey dot karlin dot mff dot cuni dot cz @ 2006-01-03 23:24 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from rakdver at atrey dot karlin dot mff dot cuni dot cz 2006-01-03 23:24 -------
Subject: Re: [4.0/4.1/4.2 Regression] ICE with const int copied into two
different functions
> ------- Comment #7 from mark at codesourcery dot com 2006-01-03 23:01 -------
> Subject: Re: [4.0/4.1/4.2 Regression] ICE with const int copied
> into two different functions
>
> rakdver at gcc dot gnu dot org wrote:
> > ------- Comment #6 from rakdver at gcc dot gnu dot org 2006-01-03 22:40 -------
> > Patch:
> >
> > http://gcc.gnu.org/ml/gcc-patches/2006-01/msg00136.html
>
> This patch is not OK, but it's close.
>
> We should not call unshare_expr on DECL_INITIAL until after the
> mark_used call, as static data members in templates will not have proper
> initializers until after that point. Also, there's no need to unshare
> *before* calling fold_non_dependent_expr.
>
> In fact, there's no need to unshare before the return statement at the
> end of the function. That will avoid creating trees that will only be
> thrown away later.
>
> So, why not just do:
>
> return unshare_expr (decl);
>
> at the end of the function?
because that causes bootstrap failure --
fold_decl_constant_value does
tree const_expr = expr;
do
{
expr = fold_non_dependent_expr (const_expr);
const_expr = integral_constant_value (expr);
}
while (expr != const_expr);
and if constant_value_1 (called by integral_constant_value) unshares the
expression unconditionally (not only when it processes DECL_INITIAL),
this loop never ends.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25632
^ permalink raw reply [flat|nested] 24+ messages in thread
* [Bug c++/25632] [4.0/4.1/4.2 Regression] ICE with const int copied into two different functions
2006-01-02 10:38 [Bug middle-end/25632] New: [4.1 Regression] ICE in make_decl_rtl, at varasm.c:890 rguenth at gcc dot gnu dot org
` (9 preceding siblings ...)
2006-01-03 23:24 ` rakdver at atrey dot karlin dot mff dot cuni dot cz
@ 2006-01-03 23:29 ` rakdver at atrey dot karlin dot mff dot cuni dot cz
2006-01-04 0:01 ` mark at codesourcery dot com
` (11 subsequent siblings)
22 siblings, 0 replies; 24+ messages in thread
From: rakdver at atrey dot karlin dot mff dot cuni dot cz @ 2006-01-03 23:29 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from rakdver at atrey dot karlin dot mff dot cuni dot cz 2006-01-03 23:29 -------
Subject: Re: [4.0/4.1/4.2 Regression] ICE with const int copied into two
different functions
> rakdver at gcc dot gnu dot org wrote:
> > ------- Comment #6 from rakdver at gcc dot gnu dot org 2006-01-03 22:40 -------
> > Patch:
> >
> > http://gcc.gnu.org/ml/gcc-patches/2006-01/msg00136.html
>
> This patch is not OK, but it's close.
>
> We should not call unshare_expr on DECL_INITIAL until after the
> mark_used call, as static data members in templates will not have proper
> initializers until after that point. Also, there's no need to unshare
> *before* calling fold_non_dependent_expr.
>
> In fact, there's no need to unshare before the return statement at the
> end of the function. That will avoid creating trees that will only be
> thrown away later.
what about this patch, then (assuming it passes testing)?
Index: cp/init.c
===================================================================
*** cp/init.c (revision 109271)
--- cp/init.c (working copy)
*************** constant_value_1 (tree decl, bool integr
*** 1503,1508 ****
--- 1503,1510 ----
mark_used (decl);
init = DECL_INITIAL (decl);
}
+ init = unshare_expr (init);
+
if (!(init || init == error_mark_node)
|| !TREE_TYPE (init)
|| (integral_p
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25632
^ permalink raw reply [flat|nested] 24+ messages in thread
* [Bug c++/25632] [4.0/4.1/4.2 Regression] ICE with const int copied into two different functions
2006-01-02 10:38 [Bug middle-end/25632] New: [4.1 Regression] ICE in make_decl_rtl, at varasm.c:890 rguenth at gcc dot gnu dot org
` (10 preceding siblings ...)
2006-01-03 23:29 ` rakdver at atrey dot karlin dot mff dot cuni dot cz
@ 2006-01-04 0:01 ` mark at codesourcery dot com
2006-01-04 0:02 ` mark at codesourcery dot com
` (10 subsequent siblings)
22 siblings, 0 replies; 24+ messages in thread
From: mark at codesourcery dot com @ 2006-01-04 0:01 UTC (permalink / raw)
To: gcc-bugs
------- Comment #10 from mark at codesourcery dot com 2006-01-04 00:01 -------
Subject: Re: [4.0/4.1/4.2 Regression] ICE with const int copied
into two different functions
rakdver at atrey dot karlin dot mff dot cuni dot cz wrote:
> tree const_expr = expr;
> do
> {
> expr = fold_non_dependent_expr (const_expr);
> const_expr = integral_constant_value (expr);
> }
> while (expr != const_expr);
>
> and if constant_value_1 (called by integral_constant_value) unshares the
> expression unconditionally (not only when it processes DECL_INITIAL),
> this loop never ends.
OK; then call unshare_expr after the "break" statement in
constant_value_1, and before "decl = init;".
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25632
^ permalink raw reply [flat|nested] 24+ messages in thread
* [Bug c++/25632] [4.0/4.1/4.2 Regression] ICE with const int copied into two different functions
2006-01-02 10:38 [Bug middle-end/25632] New: [4.1 Regression] ICE in make_decl_rtl, at varasm.c:890 rguenth at gcc dot gnu dot org
` (11 preceding siblings ...)
2006-01-04 0:01 ` mark at codesourcery dot com
@ 2006-01-04 0:02 ` mark at codesourcery dot com
2006-01-04 22:46 ` rakdver at gcc dot gnu dot org
` (9 subsequent siblings)
22 siblings, 0 replies; 24+ messages in thread
From: mark at codesourcery dot com @ 2006-01-04 0:02 UTC (permalink / raw)
To: gcc-bugs
------- Comment #11 from mark at codesourcery dot com 2006-01-04 00:02 -------
Subject: Re: [4.0/4.1/4.2 Regression] ICE with const int copied
into two different functions
rakdver at atrey dot karlin dot mff dot cuni dot cz wrote:
> what about this patch, then (assuming it passes testing)?
Better -- but there's no reason to do it before the break statement; if
we're not going to use init, then we don't neeed to unshare it. I think
you can do it right *after* the break statement.
> Index: cp/init.c
> ===================================================================
> *** cp/init.c (revision 109271)
> --- cp/init.c (working copy)
> *************** constant_value_1 (tree decl, bool integr
> *** 1503,1508 ****
> --- 1503,1510 ----
> mark_used (decl);
> init = DECL_INITIAL (decl);
> }
> + init = unshare_expr (init);
> +
> if (!(init || init == error_mark_node)
> || !TREE_TYPE (init)
> || (integral_p
>
>
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25632
^ permalink raw reply [flat|nested] 24+ messages in thread
* [Bug c++/25632] [4.0/4.1/4.2 Regression] ICE with const int copied into two different functions
2006-01-02 10:38 [Bug middle-end/25632] New: [4.1 Regression] ICE in make_decl_rtl, at varasm.c:890 rguenth at gcc dot gnu dot org
` (12 preceding siblings ...)
2006-01-04 0:02 ` mark at codesourcery dot com
@ 2006-01-04 22:46 ` rakdver at gcc dot gnu dot org
2006-01-05 0:29 ` rakdver at gcc dot gnu dot org
` (8 subsequent siblings)
22 siblings, 0 replies; 24+ messages in thread
From: rakdver at gcc dot gnu dot org @ 2006-01-04 22:46 UTC (permalink / raw)
To: gcc-bugs
------- Comment #12 from rakdver at gcc dot gnu dot org 2006-01-04 22:46 -------
Subject: Bug 25632
Author: rakdver
Date: Wed Jan 4 22:46:09 2006
New Revision: 109354
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=109354
Log:
PR c++/25632
* init.c (constant_value_1): Unshare use of DECL_INITIAL. Fix a typo
in condition.
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/init.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25632
^ permalink raw reply [flat|nested] 24+ messages in thread
* [Bug c++/25632] [4.0/4.1/4.2 Regression] ICE with const int copied into two different functions
2006-01-02 10:38 [Bug middle-end/25632] New: [4.1 Regression] ICE in make_decl_rtl, at varasm.c:890 rguenth at gcc dot gnu dot org
` (13 preceding siblings ...)
2006-01-04 22:46 ` rakdver at gcc dot gnu dot org
@ 2006-01-05 0:29 ` rakdver at gcc dot gnu dot org
2006-01-05 14:29 ` [Bug c++/25632] [4.0 " pinskia at gcc dot gnu dot org
` (7 subsequent siblings)
22 siblings, 0 replies; 24+ messages in thread
From: rakdver at gcc dot gnu dot org @ 2006-01-05 0:29 UTC (permalink / raw)
To: gcc-bugs
------- Comment #13 from rakdver at gcc dot gnu dot org 2006-01-05 00:29 -------
Subject: Bug 25632
Author: rakdver
Date: Thu Jan 5 00:29:34 2006
New Revision: 109369
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=109369
Log:
PR c++/25632
* init.c (constant_value_1): Unshare use of DECL_INITIAL. Fix a typo
in condition.
Modified:
branches/gcc-4_1-branch/gcc/cp/ChangeLog
branches/gcc-4_1-branch/gcc/cp/init.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25632
^ permalink raw reply [flat|nested] 24+ messages in thread
* [Bug c++/25632] [4.0 Regression] ICE with const int copied into two different functions
2006-01-02 10:38 [Bug middle-end/25632] New: [4.1 Regression] ICE in make_decl_rtl, at varasm.c:890 rguenth at gcc dot gnu dot org
` (14 preceding siblings ...)
2006-01-05 0:29 ` rakdver at gcc dot gnu dot org
@ 2006-01-05 14:29 ` pinskia at gcc dot gnu dot org
2006-01-11 11:39 ` rakdver at gcc dot gnu dot org
` (6 subsequent siblings)
22 siblings, 0 replies; 24+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-05 14:29 UTC (permalink / raw)
To: gcc-bugs
------- Comment #14 from pinskia at gcc dot gnu dot org 2006-01-05 14:29 -------
Fixed at least on the 4.1 branch and the mainline. Zdenek can you add the
reduced testcase in comment #2?
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to fail|4.0.3 4.1.0 4.2.0 |4.0.3
Known to work|4.0.1 |4.0.1 4.1.0 4.2.0
Summary|[4.0/4.1/4.2 Regression] ICE|[4.0 Regression] ICE with
|with const int copied into |const int copied into two
|two different functions |different functions
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25632
^ permalink raw reply [flat|nested] 24+ messages in thread
* [Bug c++/25632] [4.0 Regression] ICE with const int copied into two different functions
2006-01-02 10:38 [Bug middle-end/25632] New: [4.1 Regression] ICE in make_decl_rtl, at varasm.c:890 rguenth at gcc dot gnu dot org
` (15 preceding siblings ...)
2006-01-05 14:29 ` [Bug c++/25632] [4.0 " pinskia at gcc dot gnu dot org
@ 2006-01-11 11:39 ` rakdver at gcc dot gnu dot org
2006-01-23 14:31 ` pinskia at gcc dot gnu dot org
` (5 subsequent siblings)
22 siblings, 0 replies; 24+ messages in thread
From: rakdver at gcc dot gnu dot org @ 2006-01-11 11:39 UTC (permalink / raw)
To: gcc-bugs
------- Comment #15 from rakdver at gcc dot gnu dot org 2006-01-11 11:39 -------
Subject: Bug 25632
Author: rakdver
Date: Wed Jan 11 11:39:49 2006
New Revision: 109575
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=109575
Log:
PR c++/25632
* g++.dg/other/pr25632.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/other/pr25632.C
Modified:
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25632
^ permalink raw reply [flat|nested] 24+ messages in thread
* [Bug c++/25632] [4.0 Regression] ICE with const int copied into two different functions
2006-01-02 10:38 [Bug middle-end/25632] New: [4.1 Regression] ICE in make_decl_rtl, at varasm.c:890 rguenth at gcc dot gnu dot org
` (16 preceding siblings ...)
2006-01-11 11:39 ` rakdver at gcc dot gnu dot org
@ 2006-01-23 14:31 ` pinskia at gcc dot gnu dot org
2006-02-27 20:23 ` mmitchel at gcc dot gnu dot org
` (4 subsequent siblings)
22 siblings, 0 replies; 24+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-23 14:31 UTC (permalink / raw)
To: gcc-bugs
------- Comment #16 from pinskia at gcc dot gnu dot org 2006-01-23 14:31 -------
*** Bug 25921 has been marked as a duplicate of this bug. ***
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |wolfgang dot roemer at gmx
| |dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25632
^ permalink raw reply [flat|nested] 24+ messages in thread
* [Bug c++/25632] [4.0 Regression] ICE with const int copied into two different functions
2006-01-02 10:38 [Bug middle-end/25632] New: [4.1 Regression] ICE in make_decl_rtl, at varasm.c:890 rguenth at gcc dot gnu dot org
` (17 preceding siblings ...)
2006-01-23 14:31 ` pinskia at gcc dot gnu dot org
@ 2006-02-27 20:23 ` mmitchel at gcc dot gnu dot org
2006-02-28 0:19 ` rakdver at atrey dot karlin dot mff dot cuni dot cz
` (3 subsequent siblings)
22 siblings, 0 replies; 24+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-02-27 20:23 UTC (permalink / raw)
To: gcc-bugs
------- Comment #17 from mmitchel at gcc dot gnu dot org 2006-02-27 20:21 -------
Zdenek, does your patch apply to 4.0?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25632
^ permalink raw reply [flat|nested] 24+ messages in thread
* [Bug c++/25632] [4.0 Regression] ICE with const int copied into two different functions
2006-01-02 10:38 [Bug middle-end/25632] New: [4.1 Regression] ICE in make_decl_rtl, at varasm.c:890 rguenth at gcc dot gnu dot org
` (18 preceding siblings ...)
2006-02-27 20:23 ` mmitchel at gcc dot gnu dot org
@ 2006-02-28 0:19 ` rakdver at atrey dot karlin dot mff dot cuni dot cz
2006-02-28 0:29 ` mark at codesourcery dot com
` (2 subsequent siblings)
22 siblings, 0 replies; 24+ messages in thread
From: rakdver at atrey dot karlin dot mff dot cuni dot cz @ 2006-02-28 0:19 UTC (permalink / raw)
To: gcc-bugs
------- Comment #18 from rakdver at atrey dot karlin dot mff dot cuni dot cz 2006-02-28 00:18 -------
Subject: Re: [4.0 Regression] ICE with const int copied into two different
functions
> Zdenek, does your patch apply to 4.0?
yes, it does.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25632
^ permalink raw reply [flat|nested] 24+ messages in thread
* [Bug c++/25632] [4.0 Regression] ICE with const int copied into two different functions
2006-01-02 10:38 [Bug middle-end/25632] New: [4.1 Regression] ICE in make_decl_rtl, at varasm.c:890 rguenth at gcc dot gnu dot org
` (19 preceding siblings ...)
2006-02-28 0:19 ` rakdver at atrey dot karlin dot mff dot cuni dot cz
@ 2006-02-28 0:29 ` mark at codesourcery dot com
2006-02-28 14:32 ` rakdver at gcc dot gnu dot org
2006-02-28 17:53 ` pinskia at gcc dot gnu dot org
22 siblings, 0 replies; 24+ messages in thread
From: mark at codesourcery dot com @ 2006-02-28 0:29 UTC (permalink / raw)
To: gcc-bugs
------- Comment #19 from mark at codesourcery dot com 2006-02-28 00:25 -------
Subject: Re: [4.0 Regression] ICE with const int copied into
two different functions
rakdver at atrey dot karlin dot mff dot cuni dot cz wrote:
> ------- Comment #18 from rakdver at atrey dot karlin dot mff dot cuni dot cz 2006-02-28 00:18 -------
> Subject: Re: [4.0 Regression] ICE with const int copied into two different
> functions
>
>> Zdenek, does your patch apply to 4.0?
>
> yes, it does.
OK, would you please test and apply, then?
Thanks!
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25632
^ permalink raw reply [flat|nested] 24+ messages in thread
* [Bug c++/25632] [4.0 Regression] ICE with const int copied into two different functions
2006-01-02 10:38 [Bug middle-end/25632] New: [4.1 Regression] ICE in make_decl_rtl, at varasm.c:890 rguenth at gcc dot gnu dot org
` (20 preceding siblings ...)
2006-02-28 0:29 ` mark at codesourcery dot com
@ 2006-02-28 14:32 ` rakdver at gcc dot gnu dot org
2006-02-28 17:53 ` pinskia at gcc dot gnu dot org
22 siblings, 0 replies; 24+ messages in thread
From: rakdver at gcc dot gnu dot org @ 2006-02-28 14:32 UTC (permalink / raw)
To: gcc-bugs
------- Comment #20 from rakdver at gcc dot gnu dot org 2006-02-28 14:24 -------
Subject: Bug 25632
Author: rakdver
Date: Tue Feb 28 14:24:05 2006
New Revision: 111565
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=111565
Log:
PR c++/25632
* init.c (constant_value_1): Unshare use of DECL_INITIAL.
* g++.dg/other/pr25632.C: New test.
Added:
branches/gcc-4_0-branch/gcc/testsuite/g++.dg/other/pr25632.C
Modified:
branches/gcc-4_0-branch/gcc/ChangeLog
branches/gcc-4_0-branch/gcc/cp/init.c
branches/gcc-4_0-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25632
^ permalink raw reply [flat|nested] 24+ messages in thread
* [Bug c++/25632] [4.0 Regression] ICE with const int copied into two different functions
2006-01-02 10:38 [Bug middle-end/25632] New: [4.1 Regression] ICE in make_decl_rtl, at varasm.c:890 rguenth at gcc dot gnu dot org
` (21 preceding siblings ...)
2006-02-28 14:32 ` rakdver at gcc dot gnu dot org
@ 2006-02-28 17:53 ` pinskia at gcc dot gnu dot org
22 siblings, 0 replies; 24+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-02-28 17:53 UTC (permalink / raw)
To: gcc-bugs
------- Comment #21 from pinskia at gcc dot gnu dot org 2006-02-28 17:39 -------
Fixed.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25632
^ permalink raw reply [flat|nested] 24+ messages in thread
end of thread, other threads:[~2006-02-28 17:39 UTC | newest]
Thread overview: 24+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-02 10:38 [Bug middle-end/25632] New: [4.1 Regression] ICE in make_decl_rtl, at varasm.c:890 rguenth at gcc dot gnu dot org
2006-01-02 10:38 ` [Bug middle-end/25632] " rguenth at gcc dot gnu dot org
2006-01-02 16:36 ` [Bug c++/25632] [4.1/4.2 " pinskia at gcc dot gnu dot org
2006-01-02 16:37 ` [Bug c++/25632] [4.0/4.1/4.2 " pinskia at gcc dot gnu dot org
2006-01-03 0:24 ` [Bug c++/25632] [4.0/4.1/4.2 Regression] ICE with const int copied into two different functions mmitchel at gcc dot gnu dot org
2006-01-03 0:30 ` rakdver at gcc dot gnu dot org
2006-01-03 11:31 ` rakdver at gcc dot gnu dot org
2006-01-03 14:12 ` pinskia at gcc dot gnu dot org
2006-01-03 22:40 ` rakdver at gcc dot gnu dot org
2006-01-03 23:01 ` mark at codesourcery dot com
2006-01-03 23:24 ` rakdver at atrey dot karlin dot mff dot cuni dot cz
2006-01-03 23:29 ` rakdver at atrey dot karlin dot mff dot cuni dot cz
2006-01-04 0:01 ` mark at codesourcery dot com
2006-01-04 0:02 ` mark at codesourcery dot com
2006-01-04 22:46 ` rakdver at gcc dot gnu dot org
2006-01-05 0:29 ` rakdver at gcc dot gnu dot org
2006-01-05 14:29 ` [Bug c++/25632] [4.0 " pinskia at gcc dot gnu dot org
2006-01-11 11:39 ` rakdver at gcc dot gnu dot org
2006-01-23 14:31 ` pinskia at gcc dot gnu dot org
2006-02-27 20:23 ` mmitchel at gcc dot gnu dot org
2006-02-28 0:19 ` rakdver at atrey dot karlin dot mff dot cuni dot cz
2006-02-28 0:29 ` mark at codesourcery dot com
2006-02-28 14:32 ` rakdver at gcc dot gnu dot org
2006-02-28 17:53 ` pinskia at gcc dot gnu dot 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).