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
gcc/ChangeLog:
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp1z
/
lambda-this3.C
blob
c505ce3e1f93b6472e04288b5b0bfb24aec899ce
1
// { dg-options -std=c++17 }
2
3
struct S {
4
int i;
5
constexpr S() : i(5) {
6
([*this] () { return i + 10; }());
7
}
8
constexpr operator int() const { return i; }
9
};
10
constexpr int x = S();