* gcc.dg/debug/pr46409.c: New test.
PR c++/46368
* g++.dg/cpp0x/constexpr-defarg2.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166574
138bc75d-0d04-0410-961f-
82ee72b054a4
+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
--- /dev/null
+// 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");
+}
--- /dev/null
+/* PR debug/46409 */
+/* { dg-options "-g" } */
+
+int
+foo (int (*x) (unsigned long long), unsigned long long y)
+{
+ unsigned int z = x (y);
+ return 0;
+}