Commit 783b008c by Jakub Jelinek Committed by Jakub Jelinek

re PR tree-optimization/42890 (Crash in type_like_member_ptr_p in ipa-prop.c:382)

	PR tree-optimization/42890
	* g++.dg/torture/pr42890.C: New test.

From-SVN: r156604
parent 8d9eca14
2010-02-08 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/42890
* g++.dg/torture/pr42890.C: New test.
2010-02-08 Richard Guenther <rguenther@suse.de> 2010-02-08 Richard Guenther <rguenther@suse.de>
PR middle-end/42995 PR middle-end/42995
......
// PR tree-optimization/42890
// { dg-do compile }
extern "C" int puts (const char *) throw ();
struct S
{
const char *a;
const char **b;
S (const char *s) { a = s; b = &a; }
~S () { puts (a); }
};
void
foo (int (*fn) (const char *))
{
S a ("foo");
fn ("bar");
}
int
main ()
{
foo (puts);
}
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