diff --git a/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-nested9.C b/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-nested9.C index ff7da3b0ce1..8f67f225b13 100644 --- a/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-nested9.C +++ b/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-nested9.C @@ -34,7 +34,7 @@ int main() { #if __cpp_init_captures [j=0] () { [&] () mutable { - ++j; // { dg-error "read-only" } + ++j; // { dg-error "read-only" "" { target c++14 } } }; }; #endif