repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fortran: Fix PR 47485.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
pr38795.C
blob
89ce0d368f75a88c8ba4b7eaf24847f2bc129892
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
}