public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/31950] New: ICE in tree-ssa-alias-warnings.c
@ 2007-05-16 12:11 Ralf dot Wildenhues at gmx dot de
2007-05-16 12:35 ` [Bug c++/31950] " Ralf dot Wildenhues at gmx dot de
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: Ralf dot Wildenhues at gmx dot de @ 2007-05-16 12:11 UTC (permalink / raw)
To: gcc-bugs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1185 bytes --]
With mainline as of a couple of days ago:
| gcc version 4.3.0 20070514 (experimental)
g++ -O2 -Wstrict-aliasing=3 -c t.cc
gives me this error:
| t.cc: In function int main():
| t.cc:11: internal compiler error: tree check: expected tree that contains
decl common structure, have struct_field_tag in ffan_walker, at
tree-ssa-alias-warnings.c:638
on the following code. I haven't tried eliminating <valarray> yet,
but may try to do so, given time. Will try updated mainline next.
Cheers,
Ralf
#include <valarray>
using std::valarray;
struct A {
valarray<double>* v;
virtual ~A() { delete[] v; }
};
A Op(void);
int main()
{
A a(Op());
return 0;
}
--
Summary: ICE in tree-ssa-alias-warnings.c
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: Ralf dot Wildenhues at gmx dot de
GCC build triplet: x86_64-unknown-linux-gnu
GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31950
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/31950] ICE in tree-ssa-alias-warnings.c
2007-05-16 12:11 [Bug c++/31950] New: ICE in tree-ssa-alias-warnings.c Ralf dot Wildenhues at gmx dot de
@ 2007-05-16 12:35 ` Ralf dot Wildenhues at gmx dot de
2007-05-16 14:41 ` [Bug middle-end/31950] [4.3 Regression] " rguenth at gcc dot gnu dot org
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Ralf dot Wildenhues at gmx dot de @ 2007-05-16 12:35 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from Ralf dot Wildenhues at gmx dot de 2007-05-16 13:35 -------
Reduced test case. Both tests also fail with current mainline (revision
124767M).
struct B {
~B();
};
struct A {
B* b;
virtual ~A() { delete[] b; }
};
A Op(void);
int main()
{
A a(Op());
return 0;
}
--
Ralf dot Wildenhues at gmx dot de changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |Ralf dot Wildenhues at gmx
| |dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31950
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/31950] [4.3 Regression] ICE in tree-ssa-alias-warnings.c
2007-05-16 12:11 [Bug c++/31950] New: ICE in tree-ssa-alias-warnings.c Ralf dot Wildenhues at gmx dot de
2007-05-16 12:35 ` [Bug c++/31950] " Ralf dot Wildenhues at gmx dot de
@ 2007-05-16 14:41 ` rguenth at gcc dot gnu dot org
2007-05-16 15:07 ` Ralf dot Wildenhues at gmx dot de
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2007-05-16 14:41 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from rguenth at gcc dot gnu dot org 2007-05-16 15:41 -------
Confirmed.
Index: tree-ssa-alias-warnings.c
===================================================================
--- tree-ssa-alias-warnings.c (revision 124763)
+++ tree-ssa-alias-warnings.c (working copy)
@@ -635,7 +635,7 @@ ffan_walker (tree *t,
int *go_below ATTRIBUTE_UNUSED,
void *data ATTRIBUTE_UNUSED)
{
- if (DECL_P (*t) && DECL_ARTIFICIAL (*t))
+ if (DECL_P (*t) && !MTAG_P (*t) && DECL_ARTIFICIAL (*t))
return *t;
else
return NULL_TREE;
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |rus at google dot com
Status|UNCONFIRMED |NEW
Component|c++ |middle-end
Ever Confirmed|0 |1
Keywords| |ice-on-valid-code
Last reconfirmed|0000-00-00 00:00:00 |2007-05-16 15:41:36
date| |
Summary|ICE in tree-ssa-alias- |[4.3 Regression] ICE in
|warnings.c |tree-ssa-alias-warnings.c
Target Milestone|--- |4.3.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31950
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/31950] [4.3 Regression] ICE in tree-ssa-alias-warnings.c
2007-05-16 12:11 [Bug c++/31950] New: ICE in tree-ssa-alias-warnings.c Ralf dot Wildenhues at gmx dot de
2007-05-16 12:35 ` [Bug c++/31950] " Ralf dot Wildenhues at gmx dot de
2007-05-16 14:41 ` [Bug middle-end/31950] [4.3 Regression] " rguenth at gcc dot gnu dot org
@ 2007-05-16 15:07 ` Ralf dot Wildenhues at gmx dot de
2007-05-16 15:39 ` tbm at cyrius dot com
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Ralf dot Wildenhues at gmx dot de @ 2007-05-16 15:07 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from Ralf dot Wildenhues at gmx dot de 2007-05-16 16:07 -------
Your patch seems to fix the failure for both reduced test cases
as well as the original code. Thanks for the prompt response!
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31950
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/31950] [4.3 Regression] ICE in tree-ssa-alias-warnings.c
2007-05-16 12:11 [Bug c++/31950] New: ICE in tree-ssa-alias-warnings.c Ralf dot Wildenhues at gmx dot de
` (2 preceding siblings ...)
2007-05-16 15:07 ` Ralf dot Wildenhues at gmx dot de
@ 2007-05-16 15:39 ` tbm at cyrius dot com
2007-05-16 19:07 ` rguenth at gcc dot gnu dot org
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: tbm at cyrius dot com @ 2007-05-16 15:39 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from tbm at cyrius dot com 2007-05-16 16:39 -------
CCing Richi in case he didn't see the comment saying that his patch works.
--
tbm at cyrius dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |rguenth at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31950
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/31950] [4.3 Regression] ICE in tree-ssa-alias-warnings.c
2007-05-16 12:11 [Bug c++/31950] New: ICE in tree-ssa-alias-warnings.c Ralf dot Wildenhues at gmx dot de
` (3 preceding siblings ...)
2007-05-16 15:39 ` tbm at cyrius dot com
@ 2007-05-16 19:07 ` rguenth at gcc dot gnu dot org
2007-05-22 22:21 ` pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2007-05-16 19:07 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from rguenth at gcc dot gnu dot org 2007-05-16 20:07 -------
*** Bug 31962 has been marked as a duplicate of this bug. ***
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dcb314 at hotmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31950
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/31950] [4.3 Regression] ICE in tree-ssa-alias-warnings.c
2007-05-16 12:11 [Bug c++/31950] New: ICE in tree-ssa-alias-warnings.c Ralf dot Wildenhues at gmx dot de
` (4 preceding siblings ...)
2007-05-16 19:07 ` rguenth at gcc dot gnu dot org
@ 2007-05-22 22:21 ` pinskia at gcc dot gnu dot org
2007-06-19 11:17 ` rguenth at gcc dot gnu dot org
2007-06-19 11:17 ` rguenth at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-05-22 22:21 UTC (permalink / raw)
To: gcc-bugs
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |major
GCC build triplet|x86_64-unknown-linux-gnu |
GCC host triplet|x86_64-unknown-linux-gnu |
GCC target triplet|x86_64-unknown-linux-gnu |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31950
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/31950] [4.3 Regression] ICE in tree-ssa-alias-warnings.c
2007-05-16 12:11 [Bug c++/31950] New: ICE in tree-ssa-alias-warnings.c Ralf dot Wildenhues at gmx dot de
` (6 preceding siblings ...)
2007-06-19 11:17 ` rguenth at gcc dot gnu dot org
@ 2007-06-19 11:17 ` rguenth at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2007-06-19 11:17 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from rguenth at gcc dot gnu dot org 2007-06-19 11:16 -------
Subject: Bug 31950
Author: rguenth
Date: Tue Jun 19 11:16:43 2007
New Revision: 125846
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=125846
Log:
2007-06-19 Richard Guenther <rguenther@suse.de>
PR middle-end/31950
* tree-ssa-alias-warnings.c (ffan_walker): Punt on MTAGs.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/tree-ssa-alias-warnings.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31950
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/31950] [4.3 Regression] ICE in tree-ssa-alias-warnings.c
2007-05-16 12:11 [Bug c++/31950] New: ICE in tree-ssa-alias-warnings.c Ralf dot Wildenhues at gmx dot de
` (5 preceding siblings ...)
2007-05-22 22:21 ` pinskia at gcc dot gnu dot org
@ 2007-06-19 11:17 ` rguenth at gcc dot gnu dot org
2007-06-19 11:17 ` rguenth at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2007-06-19 11:17 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from rguenth at gcc dot gnu dot org 2007-06-19 11:17 -------
Fixed.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31950
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2007-06-19 11:17 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-16 12:11 [Bug c++/31950] New: ICE in tree-ssa-alias-warnings.c Ralf dot Wildenhues at gmx dot de
2007-05-16 12:35 ` [Bug c++/31950] " Ralf dot Wildenhues at gmx dot de
2007-05-16 14:41 ` [Bug middle-end/31950] [4.3 Regression] " rguenth at gcc dot gnu dot org
2007-05-16 15:07 ` Ralf dot Wildenhues at gmx dot de
2007-05-16 15:39 ` tbm at cyrius dot com
2007-05-16 19:07 ` rguenth at gcc dot gnu dot org
2007-05-22 22:21 ` pinskia at gcc dot gnu dot org
2007-06-19 11:17 ` rguenth at gcc dot gnu dot org
2007-06-19 11:17 ` rguenth 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).