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
Match: Support imm form for unsigned scalar .SAT_ADD
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
lambda-generic-this1a.C
blob
d321a0773ee176d6b518880beac2c15957243226
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
MyType::make_crash<i>(); // Line (1)
10
};
11
12
l(A{});
13
}
14
15
template<int i>
16
void make_crash() {}
17
};