2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / pr71225.C
blob8a328e4d9390e51d19b9131031b55e73d66f0ae4
1 // PR c++/71225
2 // { dg-do compile { target c++11 } }
4 template <bool, class> struct A;
5 template <class T> struct B;
6 template <typename T>
7 struct C
9   struct D
10   {
11     template <int N = 42, typename A<N == 43 || B<T>(), int>::type = 0>
12     void foo () const {}
13     template <int N = 42, typename A<N == 43 || !B<T> (), int>::type = 0>
14     void foo () const {}
15     void bar () { foo (); }
16   };