Commit 7d7f7fb7 by Richard Guenther Committed by Richard Biener

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
parent fe551ce4
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> 2012-05-07 Tobias Burnus <burnus@net-b.de>
PR fortran/53255 PR fortran/53255
......
// { 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;
}
struct B {
virtual void b() {}
};
static B* f() {
struct D : public B {
};
return new D;
}
B* g() {
return f();
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment