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
Fortran: Fix PR 47485.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
nsdmi-template26.C
blob
032b7b616199f978244c761a4d480becd35bf09e
1
// PR c++/109506
2
// { dg-do link { target c++11 } }
3
// { dg-additional-options "-fchecking=2" }
4
5
template<class T>
6
struct foo {
7
foo() { };
8
};
9
10
template<class T>
11
class bar {
12
foo<int> alloc_{};
13
};
14
15
template<class T>
16
bar<int> func1() {
17
return bar<int>{};
18
}
19
20
int main() {
21
func1<int>();
22
}