mirror of git://gcc.gnu.org/git/gcc.git
re PR lto/42987 (Testcases local1-a.cc and local1.C cause ICE when compiled with -flto -g)
2012-05-07 Richard Guenther <rguenther@suse.de> PR lto/42987 * g++.dg/lto/pr42987_0.C: New testcase. * g++.dg/lto/pr42987_1.C: Likewise. From-SVN: r187231
This commit is contained in:
parent
fe551ce4b1
commit
7d7f7fb770
|
@ -1,3 +1,9 @@
|
|||
2012-05-07 Richard Guenther <rguenther@suse.de>
|
||||
|
||||
PR lto/42987
|
||||
* g++.dg/lto/pr42987_0.C: New testcase.
|
||||
* g++.dg/lto/pr42987_1.C: Likewise.
|
||||
|
||||
2012-05-07 Tobias Burnus <burnus@net-b.de>
|
||||
|
||||
PR fortran/53255
|
||||
|
|
|
@ -0,0 +1,22 @@
|
|||
// { dg-lto-do run }
|
||||
// { dg-lto-options { { -flto -g } { -flto -flto-partition=none -g } } }
|
||||
|
||||
#include <typeinfo>
|
||||
|
||||
struct B {
|
||||
virtual void b() {}
|
||||
};
|
||||
|
||||
static B* f() {
|
||||
struct D : public B {
|
||||
};
|
||||
|
||||
return new D;
|
||||
}
|
||||
|
||||
extern B* g();
|
||||
|
||||
int main () {
|
||||
if (typeid (*f()) == typeid (*g()))
|
||||
return 1;
|
||||
}
|
|
@ -0,0 +1,14 @@
|
|||
struct B {
|
||||
virtual void b() {}
|
||||
};
|
||||
|
||||
static B* f() {
|
||||
struct D : public B {
|
||||
};
|
||||
|
||||
return new D;
|
||||
}
|
||||
|
||||
B* g() {
|
||||
return f();
|
||||
}
|
Loading…
Reference in New Issue