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
/
auto-fn16.C
blob
46177239ddce2ae5cd2b3e34d577658b1da28c25
1
// { dg-do compile { target c++14 } }
2
3
template<class,class> struct ST;
4
template<class T> struct ST<T,T> {};
5
6
int j;
7
auto x3 = []()->auto&& { return j; }; // OK: return type is int&
8
9
int main()
10
{
11
ST<decltype(x3()),int&>();
12
}