Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/other/crash-5.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 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 | |
131 | 12 void f(const set<int, int_less_than>&) |
111 | 13 { |
14 assert_fail (__PRETTY_FUNCTION__); | |
15 | |
16 } |