re PR debug/46409 (ICE in propagate_rtx, at fwprop.c:688)

PR debug/46409
	* gcc.dg/debug/pr46409.c: New test.

	PR c++/46368
	* g++.dg/cpp0x/constexpr-defarg2.C: New test.

From-SVN: r166574
This commit is contained in:
Jakub Jelinek 2010-11-11 00:33:56 +01:00 committed by Jakub Jelinek
parent 86de112502
commit a34779030e
3 changed files with 61 additions and 0 deletions

View file

@ -1,3 +1,11 @@
2010-11-10 Jakub Jelinek <jakub@redhat.com>
PR debug/46409
* gcc.dg/debug/pr46409.c: New test.
PR c++/46368
* g++.dg/cpp0x/constexpr-defarg2.C: New test.
2010-11-10 Uros Bizjak <ubizjak@gmail.com>
PR target/46419

View file

@ -0,0 +1,44 @@
// PR c++/46368
// { dg-options "-std=c++0x" }
class A;
class B
{
A foo ();
A bar ();
};
class C
{
};
struct D
{
D (C);
};
struct A : D
{
A (const C & n) : D (n) {}
};
A baz (const char *, A = C ());
A
B::foo ()
{
try
{
baz ("foo");
}
catch (...)
{
}
}
A
B::bar ()
{
baz ("bar");
}

View file

@ -0,0 +1,9 @@
/* PR debug/46409 */
/* { dg-options "-g" } */
int
foo (int (*x) (unsigned long long), unsigned long long y)
{
unsigned int z = x (y);
return 0;
}