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
Daily bump.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
reinterpret_cast2.C
blob
5402e825aa5d1c9d56cc8f874473d370c1ab0d62
1
// PR c++/89391
2
// { dg-do compile { target c++11 } }
3
4
struct S { };
5
6
void
7
foo ()
8
{
9
auto a = reinterpret_cast<S&&>(foo ()); // { dg-error "12:invalid cast of a prvalue expression of type 'void' to type" }
10
}