re PR tree-optimization/18904 (4.0-20041205 regression ICE with -O3)

2004-12-09  Andrew Pinski  <pinskia@physics.uc.edu>

        PR tree-opt/18904
        * g++.dg/opt/ptrmem5.C: New test.

2004-12-09  Andrew Pinski  <pinskia@physics.uc.edu>

        PR tree-opt/18904
        * tree-chrec.c (chrec_convert): Use fold_convert
        instead of convert.

From-SVN: r91954
This commit is contained in:
Andrew Pinski 2004-12-09 16:17:07 +00:00 committed by Andrew Pinski
parent 8748c00f94
commit 25a2fe8569
4 changed files with 31 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2004-12-09 Andrew Pinski <pinskia@physics.uc.edu>
PR tree-opt/18904
* tree-chrec.c (chrec_convert): Use fold_convert
instead of convert.
2004-12-09 Matt Rice <ratmice@yahoo.com>
PR preprocessor/18102

View File

@ -1,3 +1,8 @@
2004-12-09 Andrew Pinski <pinskia@physics.uc.edu>
PR tree-opt/18904
* g++.dg/opt/ptrmem5.C: New test.
2004-12-09 Alexandre Oliva <aoliva@redhat.com>
* g++.dg/parse/typename5.C: Adjust for new error.

View File

@ -0,0 +1,19 @@
// PR tree-opt/18904
// { dg-do compile }
// { dg-options "-O3" }
struct Data;
struct Wrapper {
Data* D;
};
struct Data {
int X;
void init(Wrapper&);
};
void Data::init( Wrapper &w ) {
int Data::* res = &Data::X;
w.D = this;
for( int i = 0; i < 4; i++ )
(w.D->*res) = 0;
}

View File

@ -983,7 +983,7 @@ chrec_convert (tree type,
default:
{
tree res = convert (type, chrec);
tree res = fold_convert (type, chrec);
/* Don't propagate overflows. */
TREE_OVERFLOW (res) = 0;