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
/
var-templ29.C
blob
22f5b0bc093b66ab9f3b3abe66519afaf1267239
1
// PR c++/65719
2
// { dg-do link { target c++14 } }
3
4
struct FunctionObject {
5
void operator()() const { }
6
};
7
8
template <typename T>
9
constexpr FunctionObject f{};
10
11
int main() {
12
f<int>();
13
}