re PR tree-optimization/17902 (ICE from tree_verify_flow_info)
2004-10-08 Andrew Pinski <pinskia@physics.uc.edu> PR tree-opt/17902 * g++.dg/opt/pr17902.C: New test. From-SVN: r88802
This commit is contained in:
parent
227c4bc7af
commit
3589783147
2 changed files with 31 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2004-10-08 Andrew Pinski <pinskia@physics.uc.edu>
|
||||
|
||||
PR tree-opt/17902
|
||||
* g++.dg/opt/pr17902.C: New test.
|
||||
|
||||
2004-10-09 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
* gcc.dg/cpp/ident-1.c: Add dg-options "".
|
||||
|
|
26
gcc/testsuite/g++.dg/opt/pr17902.C
Normal file
26
gcc/testsuite/g++.dg/opt/pr17902.C
Normal file
|
@ -0,0 +1,26 @@
|
|||
/* { dg-options "-O3" } */
|
||||
/* { dg-do compiler } */
|
||||
|
||||
void foo();
|
||||
struct A { ~A(){ foo(); } };
|
||||
struct B { A a; };
|
||||
void bar()
|
||||
{
|
||||
A a;
|
||||
bool b = false;
|
||||
int i, j;
|
||||
|
||||
|
||||
for (j=0; j<i; j++)
|
||||
{
|
||||
if (i) b=true;
|
||||
if (j && i) foo();
|
||||
if (j && i) i++;
|
||||
}
|
||||
|
||||
|
||||
for (j=0; j<i; j++)
|
||||
if ( !j || (j==1 && b && i) )
|
||||
B x;
|
||||
}
|
||||
|
Loading…
Add table
Reference in a new issue