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
c: fix ICE when forming composite type for two structures / unions [PR117548]
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
sizeof9.C
blob
84400d3a364c6ea41e699d45bff8422a1ad6ce2b
1
// PR c++/21025
2
3
template<int N> struct X { char x[N]; };
4
template<typename T> X<1 + sizeof(T) - sizeof(T)> F(T const &);
5
template<int N> struct S { int d() { F(1); return S(); } };
6