comparison gcc/testsuite/g++.dg/cpp0x/lambda/lambda-const-this.C @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
comparison
equal deleted inserted replaced
111:04ced10e8804 131:84e7813d76e9
3 // { dg-do compile { target c++11 } } 3 // { dg-do compile { target c++11 } }
4 struct S { 4 struct S {
5 void f(); 5 void f();
6 void g() const { 6 void g() const {
7 [=] { f(); } (); // { dg-error "no match|qualifiers" } 7 [=] { f(); } (); // { dg-error "no match|qualifiers" }
8 // { dg-warning "implicit capture" "" { target c++2a } .-1 }
8 } 9 }
9 }; 10 };