re PR tree-optimization/47714 (verify_ssa fails with error: invalid argument to gimple call)
2011-03-09 Martin Jambor <mjambor@suse.cz> PR tree-optimization/47714 * cp/method.c (use_thunk): Clear addressable flag of thunk arguments. * testsuite/g++.dg/torture/pr47714.C: New test. From-SVN: r170822
This commit is contained in:
parent
5d304e47bc
commit
bf6817f2c5
4 changed files with 27 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2011-03-09 Martin Jambor <mjambor@suse.cz>
|
||||
|
||||
PR tree-optimization/47714
|
||||
* method.c (use_thunk): Clear addressable flag of thunk arguments.
|
||||
|
||||
2011-03-08 Dodji Seketeli <dodji@redhat.com>
|
||||
|
||||
PR c++/47705
|
||||
|
|
|
@ -372,6 +372,7 @@ use_thunk (tree thunk_fndecl, bool emit_p)
|
|||
DECL_CONTEXT (x) = thunk_fndecl;
|
||||
SET_DECL_RTL (x, NULL);
|
||||
DECL_HAS_VALUE_EXPR_P (x) = 0;
|
||||
TREE_ADDRESSABLE (x) = 0;
|
||||
t = x;
|
||||
}
|
||||
a = nreverse (t);
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
2011-03-09 Martin Jambor <mjambor@suse.cz>
|
||||
|
||||
PR tree-optimization/47714
|
||||
* g++.dg/torture/pr47714.C: New test.
|
||||
|
||||
2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
|
||||
|
||||
PR target/47755
|
||||
|
|
16
gcc/testsuite/g++.dg/torture/pr47714.C
Normal file
16
gcc/testsuite/g++.dg/torture/pr47714.C
Normal file
|
@ -0,0 +1,16 @@
|
|||
struct A { virtual ~A () {} };
|
||||
struct B { virtual ~B () {} };
|
||||
struct C { virtual const A *foo (int) const = 0; };
|
||||
struct E : public B, public A { };
|
||||
struct F : public C
|
||||
{
|
||||
virtual const E *foo (int) const;
|
||||
};
|
||||
void bar (int &);
|
||||
|
||||
const E *
|
||||
F::foo (int x) const
|
||||
{
|
||||
bar (x);
|
||||
return __null;
|
||||
}
|
Loading…
Add table
Reference in a new issue