* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / constexpr-non-const-arg2.C
blob32a023b9c8cef5f6d1b41ff1ef6de6f188580ec8
1 // PR c++/47200
2 // { dg-do compile { target c++11 } }
3 // { dg-options "-w" }
5 template < int > struct duration
7   constexpr int count ();
8   static constexpr duration min ();
9 };
11 constexpr int
12 f (duration < 0 > d, duration < 0 > )
14   return d.count ();
17 static_assert (f (duration < 0 >::min (), duration < 0 > ()), ""); // { dg-error "non-constant|before its definition" }