2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / nsdmi-template17.C
blob6a5c5e48f209eb15378c97b9be0a22e6f192120f
1 // PR c++/85807
2 // { dg-do compile { target c++11 } }
4 template <class T>
5 struct limits
7   static T max();
8 };
10 template< class ScalarT = double >
11 struct value_statistics_t
13   double median = limits<double>::max();
16 template< class T > // required
17 value_statistics_t<> calc()
19   return {};
22 int main()
24   value_statistics_t<> wstats = calc<double>();