2 // { dg-do compile { target c++11 } }
3 // { dg-options "-O2" }
5 // Template instantiation and evaluation for folding within
6 // finish_function may call finish_function recursively.
7 // Make sure we don't reject or delay that sort of recursion.
9 template <bool> struct Iter;
16 template <bool> struct Iter {
19 template <bool C1, bool C2> friend constexpr bool operator==(Iter<C1>, Iter<C2>);
20 template <bool C1, bool C2> friend constexpr bool operator!=(Iter<C1>, Iter<C2>);
29 template <bool C1, bool C2> constexpr bool operator==(Iter<C1>, Iter<C2>) {
33 template <bool C1, bool C2> constexpr bool operator!=(Iter<C1> a, Iter<C2> b) {