PR c++/81917 - ICE with void_t and partial specialization.
[official-gcc.git] / gcc / testsuite / g++.dg / pr80374.C
blob83f778be638a7b756c6c5e4b83843955f4ea363d
1 // { dg-do compile }
2 // { dg-options "-O1 -std=c++11" }
3 void a (const char *, const char *, int, const char *)
4   __attribute__ ((__noreturn__));
5 template <typename b, int>
6 void
7 c () try
8   {
9     throw;
10   }
11 catch (b d)
12   {
13     if (d)
14       a ("", "", 2, __PRETTY_FUNCTION__);
15   }
16 void
17 foo ()
19   using e = decltype (nullptr);
20   c<volatile e, true> ();