]> gcc.gnu.org Git - gcc.git/blob - gcc/testsuite/g++.dg/cpp0x/nsdmi-template17.C
PR c++/92590 - wrong handling of inherited default ctor.
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / nsdmi-template17.C
1 // PR c++/85807
2 // { dg-do compile { target c++11 } }
3
4 template <class T>
5 struct limits
6 {
7 static T max();
8 };
9
10 template< class ScalarT = double >
11 struct value_statistics_t
12 {
13 double median = limits<double>::max();
14 };
15
16 template< class T > // required
17 value_statistics_t<> calc()
18 {
19 return {};
20 }
21
22 int main()
23 {
24 value_statistics_t<> wstats = calc<double>();
25 }
This page took 0.038613 seconds and 5 git commands to generate.