* [Bug c++/14230] ICE in cp_expr_size
2004-02-21 0:16 [Bug c++/14230] New: ICE in cp_expr_size jakub at gcc dot gnu dot org
@ 2004-02-21 0:21 ` jakub at gcc dot gnu dot org
2004-02-21 0:41 ` jakub at gcc dot gnu dot org
` (13 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: jakub at gcc dot gnu dot org @ 2004-02-21 0:21 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From jakub at gcc dot gnu dot org 2004-02-21 00:21 -------
Actually, it doesn't ICE in 3.2.3 either, so definitely a regression.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14230
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug c++/14230] ICE in cp_expr_size
2004-02-21 0:16 [Bug c++/14230] New: ICE in cp_expr_size jakub at gcc dot gnu dot org
2004-02-21 0:21 ` [Bug c++/14230] " jakub at gcc dot gnu dot org
@ 2004-02-21 0:41 ` jakub at gcc dot gnu dot org
2004-02-23 0:59 ` [Bug c++/14230] [3.3/3.4/3.5 Regression] " giovannibajo at libero dot it
` (12 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: jakub at gcc dot gnu dot org @ 2004-02-21 0:41 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From jakub at gcc dot gnu dot org 2004-02-21 00:41 -------
This is related to http://gcc.gnu.org/ml/gcc-patches/2002-08/msg00174.html
patch.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |jason at redhat dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14230
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug c++/14230] [3.3/3.4/3.5 Regression] ICE in cp_expr_size
2004-02-21 0:16 [Bug c++/14230] New: ICE in cp_expr_size jakub at gcc dot gnu dot org
2004-02-21 0:21 ` [Bug c++/14230] " jakub at gcc dot gnu dot org
2004-02-21 0:41 ` jakub at gcc dot gnu dot org
@ 2004-02-23 0:59 ` giovannibajo at libero dot it
2004-03-01 20:37 ` mmitchel at gcc dot gnu dot org
` (11 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: giovannibajo at libero dot it @ 2004-02-23 0:59 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From giovannibajo at libero dot it 2004-02-23 00:59 -------
Confirmed, and reduced thus:
------------------------------------------------
struct A {
A ();
A (const A&);
A& operator= (const A&);
};
struct D {
A a;
};
const A& z = D().a;
------------------------------------------------
pr14230.cc:11: internal compiler error: in cp_expr_size, at cp/cp-lang.c:345
--
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |critical
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |rejects-valid
Known to fail| |3.3.3 3.4.0 3.5.0
Known to work| |3.2.3
Last reconfirmed|0000-00-00 00:00:00 |2004-02-23 00:59:24
date| |
Summary|ICE in cp_expr_size |[3.3/3.4/3.5 Regression] ICE
| |in cp_expr_size
Target Milestone|--- |3.3.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14230
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug c++/14230] [3.3/3.4/3.5 Regression] ICE in cp_expr_size
2004-02-21 0:16 [Bug c++/14230] New: ICE in cp_expr_size jakub at gcc dot gnu dot org
` (2 preceding siblings ...)
2004-02-23 0:59 ` [Bug c++/14230] [3.3/3.4/3.5 Regression] " giovannibajo at libero dot it
@ 2004-03-01 20:37 ` mmitchel at gcc dot gnu dot org
2004-03-01 21:50 ` jason at redhat dot com
` (10 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-03-01 20:37 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From mmitchel at gcc dot gnu dot org 2004-03-01 20:37 -------
Jason, this looks to be another problem with your exception-handling
optimization stuff. Would you please take a look at that?
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |jason at redhat dot com
|dot org |
Status|NEW |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14230
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug c++/14230] [3.3/3.4/3.5 Regression] ICE in cp_expr_size
2004-02-21 0:16 [Bug c++/14230] New: ICE in cp_expr_size jakub at gcc dot gnu dot org
` (3 preceding siblings ...)
2004-03-01 20:37 ` mmitchel at gcc dot gnu dot org
@ 2004-03-01 21:50 ` jason at redhat dot com
2004-03-01 22:04 ` mark at codesourcery dot com
` (9 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: jason at redhat dot com @ 2004-03-01 21:50 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From jason at redhat dot com 2004-03-01 21:50 -------
Subject: Re: [3.3/3.4/3.5 Regression] ICE in cp_expr_size
On 1 Mar 2004 20:37:48 -0000, "mmitchel at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> wrote:
> Jason, this looks to be another problem with your exception-handling
> optimization stuff. Would you please take a look at that?
For the record, cp_expr_size is not related to the EH optimization code;
aborts in cp_expr_size indicate places where the compiler would otherwise
silently generate a bitwise copy of a class with a constructor.
But yes, I'm looking at this and the other bugs you mentioned.
Jason
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14230
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug c++/14230] [3.3/3.4/3.5 Regression] ICE in cp_expr_size
2004-02-21 0:16 [Bug c++/14230] New: ICE in cp_expr_size jakub at gcc dot gnu dot org
` (4 preceding siblings ...)
2004-03-01 21:50 ` jason at redhat dot com
@ 2004-03-01 22:04 ` mark at codesourcery dot com
2004-03-02 21:05 ` jason at redhat dot com
` (8 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: mark at codesourcery dot com @ 2004-03-01 22:04 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From mark at codesourcery dot com 2004-03-01 22:04 -------
Subject: Re: [3.3/3.4/3.5 Regression] ICE in cp_expr_size
Jason Merrill wrote:
>On 1 Mar 2004 20:37:48 -0000, "mmitchel at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> wrote:
>
>
>
>>Jason, this looks to be another problem with your exception-handling
>>optimization stuff. Would you please take a look at that?
>>
>>
>
>For the record, cp_expr_size is not related to the EH optimization code;
>aborts in cp_expr_size indicate places where the compiler would otherwise
>silently generate a bitwise copy of a class with a constructor.
>
>
>
Yes -- but I thought that the root cause in this case was the
exception-optimization code generating code that resulted in an extra
copy. Sorry if that was a bum steer!
>But yes, I'm looking at this and the other bugs you mentioned.
>
Thanks!
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14230
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug c++/14230] [3.3/3.4/3.5 Regression] ICE in cp_expr_size
2004-02-21 0:16 [Bug c++/14230] New: ICE in cp_expr_size jakub at gcc dot gnu dot org
` (5 preceding siblings ...)
2004-03-01 22:04 ` mark at codesourcery dot com
@ 2004-03-02 21:05 ` jason at redhat dot com
2004-03-06 23:38 ` pinskia at gcc dot gnu dot org
` (7 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: jason at redhat dot com @ 2004-03-02 21:05 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From jason at redhat dot com 2004-03-02 21:05 -------
Subject: Re: [3.3/3.4/3.5 Regression] ICE in cp_expr_size
Actually, this seems to be a problem with Mark's fix for 11041; using an
INIT_EXPR to initialize a temporary variable from a non-lvalue only elides
the copy if the non-lvalue is a TARGET_EXPR. In this case, it's a
COMPONENT_REF of a TARGET_EXPR, so the INIT_EXPR becomes a bitwise copy, so
cp_expr_size aborts.
Jason
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14230
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug c++/14230] [3.3/3.4/3.5 Regression] ICE in cp_expr_size
2004-02-21 0:16 [Bug c++/14230] New: ICE in cp_expr_size jakub at gcc dot gnu dot org
` (6 preceding siblings ...)
2004-03-02 21:05 ` jason at redhat dot com
@ 2004-03-06 23:38 ` pinskia at gcc dot gnu dot org
2004-03-08 20:55 ` jason at gcc dot gnu dot org
` (6 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-03-06 23:38 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-03-06 23:38 -------
*** Bug 14464 has been marked as a duplicate of this bug. ***
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |robert dot schweikert at
| |abaqus dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14230
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug c++/14230] [3.3/3.4/3.5 Regression] ICE in cp_expr_size
2004-02-21 0:16 [Bug c++/14230] New: ICE in cp_expr_size jakub at gcc dot gnu dot org
` (7 preceding siblings ...)
2004-03-06 23:38 ` pinskia at gcc dot gnu dot org
@ 2004-03-08 20:55 ` jason at gcc dot gnu dot org
2004-03-09 10:07 ` cvs-commit at gcc dot gnu dot org
` (5 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: jason at gcc dot gnu dot org @ 2004-03-08 20:55 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From jason at gcc dot gnu dot org 2004-03-08 20:55 -------
I've reassigned this to Mark since I don't understand his reasoning for moving
away from cp_finish_decl, which I would expect to generate a copy constructor
call for this case, which would be one correct solution. Another would be to
preserve the D temporary so that we can refer to the A subobject, though that
might not be desirable in cases where the subobject is only a small part of the
temporary.
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|jason at redhat dot com |mmitchel at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14230
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug c++/14230] [3.3/3.4/3.5 Regression] ICE in cp_expr_size
2004-02-21 0:16 [Bug c++/14230] New: ICE in cp_expr_size jakub at gcc dot gnu dot org
` (8 preceding siblings ...)
2004-03-08 20:55 ` jason at gcc dot gnu dot org
@ 2004-03-09 10:07 ` cvs-commit at gcc dot gnu dot org
2004-03-09 10:08 ` cvs-commit at gcc dot gnu dot org
` (4 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-03-09 10:07 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-03-09 10:07 -------
Subject: Bug 14230
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-3_4-branch
Changes by: mmitchel@gcc.gnu.org 2004-03-09 10:07:31
Modified files:
gcc/cp : ChangeLog call.c
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/g++.dg/init: ref11.C
Log message:
PR c++/14230
* call.c (initialize_reference): Handle initializers that are
class-member access expressions applies to rvalues.
PR c++/14230
* g++.dg/init/ref11.C: New test.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.3892.2.74&r2=1.3892.2.75
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/call.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.452.2.9&r2=1.452.2.10
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.3389.2.133&r2=1.3389.2.134
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/init/ref11.C.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=NONE&r2=1.1.2.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14230
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug c++/14230] [3.3/3.4/3.5 Regression] ICE in cp_expr_size
2004-02-21 0:16 [Bug c++/14230] New: ICE in cp_expr_size jakub at gcc dot gnu dot org
` (9 preceding siblings ...)
2004-03-09 10:07 ` cvs-commit at gcc dot gnu dot org
@ 2004-03-09 10:08 ` cvs-commit at gcc dot gnu dot org
2004-03-09 10:10 ` [Bug c++/14230] [3.3 " mmitchel at gcc dot gnu dot org
` (3 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-03-09 10:08 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-03-09 10:08 -------
Subject: Bug 14230
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: mmitchel@gcc.gnu.org 2004-03-09 10:08:40
Modified files:
gcc/cp : ChangeLog call.c
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/g++.dg/init: ref11.C
Log message:
PR c++/14230
* call.c (initialize_reference): Handle initializers that are
class-member access expressions applies to rvalues.
PR c++/14230
* g++.dg/init/ref11.C: New test.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.3989&r2=1.3990
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/call.c.diff?cvsroot=gcc&r1=1.464&r2=1.465
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.3585&r2=1.3586
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/init/ref11.C.diff?cvsroot=gcc&r1=1.1&r2=1.2
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14230
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug c++/14230] [3.3 Regression] ICE in cp_expr_size
2004-02-21 0:16 [Bug c++/14230] New: ICE in cp_expr_size jakub at gcc dot gnu dot org
` (10 preceding siblings ...)
2004-03-09 10:08 ` cvs-commit at gcc dot gnu dot org
@ 2004-03-09 10:10 ` mmitchel at gcc dot gnu dot org
2004-03-13 2:01 ` gdr at gcc dot gnu dot org
` (2 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-03-09 10:10 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From mmitchel at gcc dot gnu dot org 2004-03-09 10:10 -------
Fixed in GCC 3.4 and GCC 3.5.
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|mmitchel at gcc dot gnu dot |unassigned at gcc dot gnu
|org |dot org
Status|ASSIGNED |NEW
Known to fail|3.3.3 3.4.0 3.5.0 |3.3.3
Summary|[3.3/3.4/3.5 Regression] ICE|[3.3 Regression] ICE in
|in cp_expr_size |cp_expr_size
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14230
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug c++/14230] [3.3 Regression] ICE in cp_expr_size
2004-02-21 0:16 [Bug c++/14230] New: ICE in cp_expr_size jakub at gcc dot gnu dot org
` (11 preceding siblings ...)
2004-03-09 10:10 ` [Bug c++/14230] [3.3 " mmitchel at gcc dot gnu dot org
@ 2004-03-13 2:01 ` gdr at gcc dot gnu dot org
2004-03-13 2:01 ` cvs-commit at gcc dot gnu dot org
2004-03-27 16:20 ` cvs-commit at gcc dot gnu dot org
14 siblings, 0 replies; 16+ messages in thread
From: gdr at gcc dot gnu dot org @ 2004-03-13 2:01 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From gdr at gcc dot gnu dot org 2004-03-13 02:01 -------
http://gcc.gnu.org/ml/gcc-patches/2004-03/msg01089.html
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14230
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug c++/14230] [3.3 Regression] ICE in cp_expr_size
2004-02-21 0:16 [Bug c++/14230] New: ICE in cp_expr_size jakub at gcc dot gnu dot org
` (12 preceding siblings ...)
2004-03-13 2:01 ` gdr at gcc dot gnu dot org
@ 2004-03-13 2:01 ` cvs-commit at gcc dot gnu dot org
2004-03-27 16:20 ` cvs-commit at gcc dot gnu dot org
14 siblings, 0 replies; 16+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-03-13 2:01 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-03-13 02:01 -------
Subject: Bug 14230
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-3_3-branch
Changes by: gdr@gcc.gnu.org 2004-03-13 02:00:59
Modified files:
gcc/cp : ChangeLog call.c
Added files:
gcc/testsuite/g++.dg/init: ref11.C
Log message:
Backport:
2004-03-09 Mark Mitchell <mark@codesourcery.com>
PR c++/14230
* call.c (initialize_reference): Handle initializers that are
class-member access expressions applies to rvalues.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.3076.2.260&r2=1.3076.2.261
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/call.c.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.341.2.40&r2=1.341.2.41
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/init/ref11.C.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=NONE&r2=1.2.2.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14230
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug c++/14230] [3.3 Regression] ICE in cp_expr_size
2004-02-21 0:16 [Bug c++/14230] New: ICE in cp_expr_size jakub at gcc dot gnu dot org
` (13 preceding siblings ...)
2004-03-13 2:01 ` cvs-commit at gcc dot gnu dot org
@ 2004-03-27 16:20 ` cvs-commit at gcc dot gnu dot org
14 siblings, 0 replies; 16+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-03-27 16:20 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-03-27 16:20 -------
Subject: Bug 14230
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-3_3-rhl-branch
Changes by: jakub@gcc.gnu.org 2004-03-27 16:20:38
Modified files:
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/g++.dg/init: ref11.C
Log message:
2004-03-09 Mark Mitchell <mark@codesourcery.com>
PR c++/14230
* g++.dg/init/ref11.C: New test.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_3-rhl-branch&r1=1.2261.2.170.2.51&r2=1.2261.2.170.2.52
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/init/ref11.C.diff?cvsroot=gcc&only_with_tag=gcc-3_3-rhl-branch&r1=NONE&r2=1.2.6.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14230
^ permalink raw reply [flat|nested] 16+ messages in thread