Fortran: Fix PR 47485.
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / noexcept78.C
blobe8156eb7c6f9b4f44fe58a99760c8179938740c2
1 // PR c++/109761
2 // { dg-do compile { target c++11 } }
4 struct base {
5   virtual void foo() noexcept { }
6   virtual ~base() { }
7 };
9 struct outer : base {
10   struct nested {
11     void foo() noexcept(noexcept(g())); // { dg-bogus "looser" }
12     ~nested() noexcept(noexcept(g()));  // { dg-bogus "looser" }
13   };
14   static void g();