Debian Codegraph @

gcc/testsuite/g++.dg/other/crash-5.C

raw
1 // Origin: PR c++/42758
2 // { dg-do compile }
3
4 template<class T> struct less {};
5
6 template<class T, typename U = less<T> > struct set {};
7
8 struct int_less_than {};
9
10 void assert_fail (const char*);
11
12 void f(const set<int, int_less_than>&)
13 {
14 assert_fail (__PRETTY_FUNCTION__);
15
16 }