* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / pr51150.C
blobaf1d1cf2ea6e93607d5e44bb8acde9827e53e5d0
1 // PR c++/51150
2 // { dg-do compile { target c++11 } }
4 struct Clock {
5   double Now();
6 };
7 template <class T> void Foo(Clock* clock) {
8   const int now = clock->Now();
11 template void Foo<float>(Clock*);
13 template <class T> void Boo(int val) {
14   const int now1 = (double)(val);
15   const int now2 = const_cast<double>(val); // { dg-error "invalid" }
16   const int now3 = static_cast<double>(val);
17   const int now4 = reinterpret_cast<double>(val); // { dg-error "invalid" }
20 template void Boo<float>(int);