2017-09-13 Paolo Carlini <paolo.carlini@oracle.com> PR c++/61135 * g++.dg/cpp0x/lambda/lambda-ice18.C: New. * g++.dg/cpp1y/lambda-ice2.C: Likewise. From-SVN: r252571
16 lines
198 B
C
16 lines
198 B
C
// PR c++/61135
|
|
// { dg-do compile { target c++11 } }
|
|
|
|
struct Base
|
|
{
|
|
virtual int b() const{return 1;};
|
|
};
|
|
|
|
struct Super:Base{};
|
|
|
|
int main()
|
|
{
|
|
constexpr Super s = Super();
|
|
[&]{s.b();}();
|
|
}
|