Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/lambda/lambda-ice18.C

raw
1 // PR c++/61135
2 // { dg-do compile { target c++11 } }
3
4 struct Base
5 {
6 virtual int b() const{return 1;};
7 };
8
9 struct Super:Base{};
10
11 int main()
12 {
13 constexpr Super s = Super();
14 [&]{s.b();}();
15 }