[gcc/devel/ranger] testsuite: Fix g++.dg/analyzer/pr93212.C with check-c++-all

Aldy Hernandez aldyh@gcc.gnu.org
Wed Jun 17 18:51:03 GMT 2020


https://gcc.gnu.org/g:74ddc9b8e550c6138862f9ca1eec4374d46667fc

commit 74ddc9b8e550c6138862f9ca1eec4374d46667fc
Author: Jakub Jelinek <jakub@redhat.com>
Date:   Thu Feb 13 08:06:51 2020 +0100

    testsuite: Fix g++.dg/analyzer/pr93212.C with check-c++-all
    
    The test FAILs with c++11:
    .../gcc/testsuite/g++.dg/analyzer/pr93212.C:4:1: error: 'lol' function uses 'auto' type specifier without trailing return type
    .../gcc/testsuite/g++.dg/analyzer/pr93212.C:4:1: note: deduced return type only available with '-std=c++14' or '-std=gnu++14'
    
    2020-02-13  Jakub Jelinek  <jakub@redhat.com>
    
            * g++.dg/analyzer/pr93212.C: Require c++14 rather than c++11.

Diff:
---
 gcc/testsuite/ChangeLog                 | 6 +++++-
 gcc/testsuite/g++.dg/analyzer/pr93212.C | 2 +-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 46344a63344..a2054a44d69 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,4 +1,8 @@
-2020-02-12 Iain Sandoe <iain@sandoe.co.uk>
+2020-02-13  Jakub Jelinek  <jakub@redhat.com>
+
+	* g++.dg/analyzer/pr93212.C: Require c++14 rather than c++11.
+
+2020-02-12  Iain Sandoe  <iain@sandoe.co.uk>
 
 	* g++.dg/coroutines/coro1-allocators.h: New.
 	* g++.dg/coroutines/coro-bad-alloc-00-bad-op-new.C: New test.
diff --git a/gcc/testsuite/g++.dg/analyzer/pr93212.C b/gcc/testsuite/g++.dg/analyzer/pr93212.C
index cfbb42d2275..0d76d839378 100644
--- a/gcc/testsuite/g++.dg/analyzer/pr93212.C
+++ b/gcc/testsuite/g++.dg/analyzer/pr93212.C
@@ -1,4 +1,4 @@
-// { dg-do compile { target c++11 } }
+// { dg-do compile { target c++14 } }
 
 #include <iostream>
 auto lol()


More information about the Gcc-cvs mailing list