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
PR c++/56973, DR 696 - capture constant variables only as needed.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
auto-fn31.C
blob
c99c59571e9f2a05b00b5c2e6477e726b717d6a5
1
// PR c++/70572
2
// { dg-do compile { target c++14 } }
3
4
void foo ()
5
{
6
decltype (auto) a = foo; // { dg-error "initializer" }
7
}