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
2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
opt
/
pr82159.C
blob
e39dbc353fc139162b6805dbebbf5a4645b595e3
1
// PR c++/82159
2
// { dg-do compile }
3
// { dg-options "" }
4
5
template<int N>
6
struct S
7
{
8
~S () {}
9
template<int M> S<M> foo () { return S<M> (); }
10
unsigned char data[N];
11
};
12
13
int
14
main ()
15
{
16
S<16> d;
17
S<0> t = d.foo<0> ();
18
}