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
/cp
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
nsdmi-aggr11.C
blob
09591df380772a3e07053217084363aaf9ad7b05
1
// PR c++/85148
2
// { dg-do compile { target c++14 } }
3
4
template<typename T> struct A
5
{
6
T x[1]{(__PTRDIFF_TYPE__)this};
7
};
8
9
void foo()
10
{
11
A<A<__PTRDIFF_TYPE__>> a{};
12
}