re PR c++/61135 (It seems to be not able to call virtual method of literal object...
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / lambda / lambda-ice18.C
blob83e8ae049d8d41003733677d0b05a9fd359185a5
1 // PR c++/61135
2 // { dg-do compile { target c++11 } }
4 struct Base
6   virtual int b() const{return 1;};
7 };
8    
9 struct Super:Base{};
11 int main()
13   constexpr Super s = Super();
14   [&]{s.b();}();