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
/
cpp1z
/
lambda-__func__.C
blob
d1b02ef02813536f25c4ab9a9b3c6782a8f46abb
1
// PR c++/84925
2
// { dg-do compile { target c++17 } }
3
4
template <typename>
5
struct A {
6
static const int value = 0;
7
static auto constexpr fn = [] { return __func__; };
8
};
9
10
template <typename type>
11
int x = A<type>::value;
12
13
auto s = x<int>;