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 tree-optimization/86415 - strlen() not folded for substrings within constant arrays
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp1z
/
constexpr-lambda15.C
blob
358d4aaed8fcaed0b1e2fae36cdb8e3878bfccec
1
// PR c++/79461
2
// { dg-do compile { target c++14 } }
3
4
struct S {
5
constexpr S(int i) {
6
auto f = [i]{}; // { dg-error "literal" "" { target c++14_only } }
7
}
8
};
9
int main() {}
10