This test uses C++14 features so is failing with -std=c++11.

Tested x86_64-pc-linux-gnu, applying to trunk.

gcc/testsuite/ChangeLog:

        * g++.dg/warn/Wnonnull6.C: Use target c++14.
---
 gcc/testsuite/g++.dg/warn/Wnonnull6.C | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gcc/testsuite/g++.dg/warn/Wnonnull6.C 
b/gcc/testsuite/g++.dg/warn/Wnonnull6.C
index dae6dd2d912..7eff7f6273b 100644
--- a/gcc/testsuite/g++.dg/warn/Wnonnull6.C
+++ b/gcc/testsuite/g++.dg/warn/Wnonnull6.C
@@ -1,7 +1,7 @@
 /* PR c++/95984 - Internal compiler error: Error reporting routines re-entered
-   in -Wnonnull on a variadic lamnda
+   in -Wnonnull on a variadic lambda
    PR c++/missing -Wnonnull passing nullptr to a nonnull variadic lambda
-   { dg-do compile { target c++11 } }
+   { dg-do compile { target c++14 } }
    { dg-options "-Wall" } */
 
 typedef int F (int);

base-commit: 919373a6bfff415db7676c9f92a356ddfc501dfe
-- 
2.26.2

Reply via email to