Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/pr38795.C

raw
1 // PR c++/38795
2 // { dg-do compile { target c++11 } }
3
4 template<typename... T> int foo(int i)
5 {
6 return *reinterpret_cast<T*>(i); // { dg-error "not expanded with|T" }
7 }
8
9 void bar(int i)
10 {
11 foo<int>(i);
12 }