☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
pr38795.C
☽
☼
gcc/testsuite/g++.dg/cpp0x/pr38795.C
code
plain
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
}