* [Bug c++/13173] [3.3 regression] ICE in convert_move
2003-11-24 11:50 [Bug c++/13173] New: internal compiler error: in convert_move, at expr.c:565 jdc at coris dot org dot uk
@ 2003-11-24 15:29 ` bangerth at dealii dot org
2003-11-24 15:42 ` pinskia at gcc dot gnu dot org
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: bangerth at dealii dot org @ 2003-11-24 15:29 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From bangerth at dealii dot org 2003-11-24 15:29 -------
Confirmed. The original testcase doesn't ICE on x86 linux, but that's
only because of a different definition of va_list. Here's something
that also crashes on my box:
------------------
void foo() {
double val
= (1 ?
__extension__ ({ char d[8]; *(double *)(char*)d; })
:
*(double *)0);
}
-------------------
g/x> /home/bangerth/bin/gcc-3.3.2/bin/c++ -c x.cc
x.cc: In function `void foo()':
x.cc:4: internal compiler error: in convert_move, at expr.c:565
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
This is a regression on 3.2 and 3.3 with respect to previous versions.
It is fixed on mainline, though.
W.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2003-11-24 15:29:52
date| |
Summary|internal compiler error: in |[3.3 regression] ICE in
|convert_move, at expr.c:565 |convert_move
Target Milestone|--- |3.3.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13173
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/13173] [3.3 regression] ICE in convert_move
2003-11-24 11:50 [Bug c++/13173] New: internal compiler error: in convert_move, at expr.c:565 jdc at coris dot org dot uk
2003-11-24 15:29 ` [Bug c++/13173] [3.3 regression] ICE in convert_move bangerth at dealii dot org
@ 2003-11-24 15:42 ` pinskia at gcc dot gnu dot org
2003-11-24 16:35 ` bangerth at dealii dot org
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-11-24 15:42 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-11-24 15:42 -------
Here is the dates that it was fixed on the mainline (From Phil's regression hunter): Search
converges between 2003-07-31-trunk (#359) and 2003-08-01-trunk (#360).
Looks like this patch: <http://gcc.gnu.org/ml/gcc-patches/2003-07/msg02851.html> fixed it for
the mainline, it looks like it will **NOT** apply directly to 3.3.
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice-on-valid-code
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13173
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/13173] [3.3 regression] ICE in convert_move
2003-11-24 11:50 [Bug c++/13173] New: internal compiler error: in convert_move, at expr.c:565 jdc at coris dot org dot uk
2003-11-24 15:29 ` [Bug c++/13173] [3.3 regression] ICE in convert_move bangerth at dealii dot org
2003-11-24 15:42 ` pinskia at gcc dot gnu dot org
@ 2003-11-24 16:35 ` bangerth at dealii dot org
2003-11-24 16:37 ` bangerth at dealii dot org
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: bangerth at dealii dot org @ 2003-11-24 16:35 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From bangerth at dealii dot org 2003-11-24 16:35 -------
The cited patch might have triggered the fix for this one as well,
but there may be a simpler patch since Nathan clearly says that this
is about statement expressions for non-POD type -- which is not
the case here.
W.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13173
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/13173] [3.3 regression] ICE in convert_move
2003-11-24 11:50 [Bug c++/13173] New: internal compiler error: in convert_move, at expr.c:565 jdc at coris dot org dot uk
` (2 preceding siblings ...)
2003-11-24 16:35 ` bangerth at dealii dot org
@ 2003-11-24 16:37 ` bangerth at dealii dot org
2003-11-25 11:57 ` jdc at coris dot org dot uk
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: bangerth at dealii dot org @ 2003-11-24 16:37 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From bangerth at dealii dot org 2003-11-24 16:37 -------
Thinking about it again, this is even simpler:
--------------------
void foo() {
double val
= (1 ?
({ *(double *)0; })
:
*(double *)0);
}
---------------------
and still triggers the same ICE.
W.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13173
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/13173] [3.3 regression] ICE in convert_move
2003-11-24 11:50 [Bug c++/13173] New: internal compiler error: in convert_move, at expr.c:565 jdc at coris dot org dot uk
` (3 preceding siblings ...)
2003-11-24 16:37 ` bangerth at dealii dot org
@ 2003-11-25 11:57 ` jdc at coris dot org dot uk
2003-12-04 0:37 ` reichelt at gcc dot gnu dot org
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: jdc at coris dot org dot uk @ 2003-11-25 11:57 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From jdc at coris dot org dot uk 2003-11-25 11:57 -------
Thanks for the fast responses.
When I try the simpler code on sparc/gcc-3.3.2, it compiles OK.
However, on alpha/gcc-3.3.2, I see:
$ c++ -c -o yy.o yy.C
yy.C: In function `void foo()':
yy.C:7: error: unrecognizable insn:
(insn 17 23 18 0 0x160545600 (set (reg:DF 69)
(const_int 0 [0x0])) -1 (nil)
(expr_list:REG_EQUAL (const_int 0 [0x0])
(nil)))
yy.C:7: internal compiler error: in extract_insn, at recog.c:2175
Please submit a full bug report,
Again, the code compiles file with cc.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13173
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/13173] [3.3 regression] ICE in convert_move
2003-11-24 11:50 [Bug c++/13173] New: internal compiler error: in convert_move, at expr.c:565 jdc at coris dot org dot uk
` (4 preceding siblings ...)
2003-11-25 11:57 ` jdc at coris dot org dot uk
@ 2003-12-04 0:37 ` reichelt at gcc dot gnu dot org
2003-12-04 1:34 ` gdr at integrable-solutions dot net
2003-12-24 22:25 ` gdr at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2003-12-04 0:37 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From reichelt at gcc dot gnu dot org 2003-12-04 00:37 -------
Here's an even shorter testcase that triggers the ICE in extract_insn
on i686-pc-linux-gnu.
======================================
double foo()
{
return ({ *(double*)0; });
}
======================================
Note that the C frontend compiles this testcase without problems.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13173
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/13173] [3.3 regression] ICE in convert_move
2003-11-24 11:50 [Bug c++/13173] New: internal compiler error: in convert_move, at expr.c:565 jdc at coris dot org dot uk
` (5 preceding siblings ...)
2003-12-04 0:37 ` reichelt at gcc dot gnu dot org
@ 2003-12-04 1:34 ` gdr at integrable-solutions dot net
2003-12-24 22:25 ` gdr at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: gdr at integrable-solutions dot net @ 2003-12-04 1:34 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From gdr at integrable-solutions dot net 2003-12-04 01:34 -------
Subject: Re: [3.3 regression] ICE in convert_move
"reichelt at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> writes:
| double foo()
| {
| return ({ *(double*)0; });
down with statement-expressions!
-- Gaby
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13173
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/13173] [3.3 regression] ICE in convert_move
2003-11-24 11:50 [Bug c++/13173] New: internal compiler error: in convert_move, at expr.c:565 jdc at coris dot org dot uk
` (6 preceding siblings ...)
2003-12-04 1:34 ` gdr at integrable-solutions dot net
@ 2003-12-24 22:25 ` gdr at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: gdr at gcc dot gnu dot org @ 2003-12-24 22:25 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From gdr at gcc dot gnu dot org 2003-12-24 22:10 -------
I don't anticipate a backport from mainline.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WONTFIX
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13173
^ permalink raw reply [flat|nested] 9+ messages in thread