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
c++: robustify testcase [PR109752]
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
lambda-generic-this1.C
blob
52d25af9c5a1cbb04cf1a364ceca9fdb30126d6a
1
// PR c++/81236
2
// { dg-do compile { target c++14 } }
3
4
struct A { constexpr operator int() { return 24; } };
5
6
struct MyType {
7
void crash() {
8
auto l = [&](auto i){
9
make_crash<i>(); // Line (1)
10
};
11
12
l(A{});
13
}
14
15
template<int i>
16
void make_crash() {}
17
};