public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/42760] New: [4.4 Regression] ICE in convert_move
@ 2010-01-15 15:48 jakub at gcc dot gnu dot org
2010-01-15 16:10 ` [Bug middle-end/42760] " jakub at gcc dot gnu dot org
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: jakub at gcc dot gnu dot org @ 2010-01-15 15:48 UTC (permalink / raw)
To: gcc-bugs
// { dg-do compile }
// { dg-options "-O2" }
template <typename T>
struct A
{
static T b (T it) { return it; }
};
template <typename T, typename U>
static U
baz (T x, T y, U z)
{
for (long n = y - x; n > 0; --n)
{
*z = *x;
++z;
}
};
template <typename T, typename U>
U
bar (T x, T y, U z)
{
baz (A <T>::b (x), A <T>::b (y), A <U>::b (z));
}
struct C
{
__complex__ float v;
};
template <class T>
struct B
{
B (T y[]) { bar (y, y + 1, x); }
operator T *() { return x; }
T x[1];
};
B <C>
foo ()
{
C y[1];
return B <C> (y);
};
ICEs in convert_move on x86_64. Works with 4.3 or 4.5.
--
Summary: [4.4 Regression] ICE in convert_move
Product: gcc
Version: 4.4.3
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: middle-end
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jakub at gcc dot gnu dot org
GCC target triplet: x86_64-linux
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42760
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug middle-end/42760] [4.4 Regression] ICE in convert_move
2010-01-15 15:48 [Bug middle-end/42760] New: [4.4 Regression] ICE in convert_move jakub at gcc dot gnu dot org
@ 2010-01-15 16:10 ` jakub at gcc dot gnu dot org
2010-01-15 16:24 ` rguenth at gcc dot gnu dot org
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu dot org @ 2010-01-15 16:10 UTC (permalink / raw)
To: gcc-bugs
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.4.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42760
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug middle-end/42760] [4.4 Regression] ICE in convert_move
2010-01-15 15:48 [Bug middle-end/42760] New: [4.4 Regression] ICE in convert_move jakub at gcc dot gnu dot org
2010-01-15 16:10 ` [Bug middle-end/42760] " jakub at gcc dot gnu dot org
@ 2010-01-15 16:24 ` rguenth at gcc dot gnu dot org
2010-01-15 17:02 ` jakub at gcc dot gnu dot org
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-01-15 16:24 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from rguenth at gcc dot gnu dot org 2010-01-15 16:23 -------
Trunk has
if (COMPLEX_MODE_P (TYPE_MODE (TREE_TYPE (from))))
instead of the 4.4
if (TREE_CODE (TREE_TYPE (from)) == COMPLEX_TYPE)
Fixed by
2009-06-17 Steve Ellcey <sje@cup.hp.com>
* expr.c (expand_assignment): Change complex type check.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42760
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug middle-end/42760] [4.4 Regression] ICE in convert_move
2010-01-15 15:48 [Bug middle-end/42760] New: [4.4 Regression] ICE in convert_move jakub at gcc dot gnu dot org
2010-01-15 16:10 ` [Bug middle-end/42760] " jakub at gcc dot gnu dot org
2010-01-15 16:24 ` rguenth at gcc dot gnu dot org
@ 2010-01-15 17:02 ` jakub at gcc dot gnu dot org
2010-01-16 9:45 ` jakub at gcc dot gnu dot org
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu dot org @ 2010-01-15 17:02 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from jakub at gcc dot gnu dot org 2010-01-15 17:01 -------
Indeed, that fixes it. Going to bootstrap/regtest it now on several arches,
then commit before rolling 4.4.3-rc1.
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |jakub at gcc dot gnu dot org
|dot org |
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2010-01-15 17:01:44
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42760
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug middle-end/42760] [4.4 Regression] ICE in convert_move
2010-01-15 15:48 [Bug middle-end/42760] New: [4.4 Regression] ICE in convert_move jakub at gcc dot gnu dot org
` (2 preceding siblings ...)
2010-01-15 17:02 ` jakub at gcc dot gnu dot org
@ 2010-01-16 9:45 ` jakub at gcc dot gnu dot org
2010-01-16 9:46 ` jakub at gcc dot gnu dot org
2010-01-16 15:24 ` jakub at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu dot org @ 2010-01-16 9:45 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from jakub at gcc dot gnu dot org 2010-01-16 09:45 -------
Subject: Bug 42760
Author: jakub
Date: Sat Jan 16 09:44:57 2010
New Revision: 155959
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=155959
Log:
PR middle-end/42760
Backport from trunk
2009-06-17 Steve Ellcey <sje@cup.hp.com>
* expr.c (expand_assignment): Change complex type check.
* g++.dg/torture/pr42760.C: New test.
Added:
branches/gcc-4_4-branch/gcc/testsuite/g++.dg/torture/pr42760.C
Modified:
branches/gcc-4_4-branch/gcc/ChangeLog
branches/gcc-4_4-branch/gcc/expr.c
branches/gcc-4_4-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42760
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug middle-end/42760] [4.4 Regression] ICE in convert_move
2010-01-15 15:48 [Bug middle-end/42760] New: [4.4 Regression] ICE in convert_move jakub at gcc dot gnu dot org
` (3 preceding siblings ...)
2010-01-16 9:45 ` jakub at gcc dot gnu dot org
@ 2010-01-16 9:46 ` jakub at gcc dot gnu dot org
2010-01-16 15:24 ` jakub at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu dot org @ 2010-01-16 9:46 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from jakub at gcc dot gnu dot org 2010-01-16 09:46 -------
Subject: Bug 42760
Author: jakub
Date: Sat Jan 16 09:45:53 2010
New Revision: 155960
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=155960
Log:
PR middle-end/42760
* g++.dg/torture/pr42760.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/torture/pr42760.C
Modified:
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42760
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug middle-end/42760] [4.4 Regression] ICE in convert_move
2010-01-15 15:48 [Bug middle-end/42760] New: [4.4 Regression] ICE in convert_move jakub at gcc dot gnu dot org
` (4 preceding siblings ...)
2010-01-16 9:46 ` jakub at gcc dot gnu dot org
@ 2010-01-16 15:24 ` jakub at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu dot org @ 2010-01-16 15:24 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from jakub at gcc dot gnu dot org 2010-01-16 15:24 -------
Fixed.
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42760
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2010-01-16 15:24 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-15 15:48 [Bug middle-end/42760] New: [4.4 Regression] ICE in convert_move jakub at gcc dot gnu dot org
2010-01-15 16:10 ` [Bug middle-end/42760] " jakub at gcc dot gnu dot org
2010-01-15 16:24 ` rguenth at gcc dot gnu dot org
2010-01-15 17:02 ` jakub at gcc dot gnu dot org
2010-01-16 9:45 ` jakub at gcc dot gnu dot org
2010-01-16 9:46 ` jakub at gcc dot gnu dot org
2010-01-16 15:24 ` jakub 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).