repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
PR c++/86728 - C variadic generic lambda.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
expr
/
cast10.C
blob
cd3e0fc3c2719dbb8df0afb259abe8d4a05c8d2f
1
// { dg-do compile }
2
// This used to error out because we would try to convert m to a short.
3
4
5
struct a {};
6
void b() {
7
int a::*m;
8
a *c;
9
short p = reinterpret_cast<char*>(&(c->*m)) - reinterpret_cast<char*>(c);
10
}