From patchwork Thu Feb 13 07:11:08 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakub Jelinek X-Patchwork-Id: 1237325 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-519455-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.a=rsa-sha1 header.s=default header.b=vzqeyoUE; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=CS/uE++w; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48J73Q60PXz9sPK for ; Thu, 13 Feb 2020 18:11:28 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:cc:subject:message-id:reply-to:references:mime-version :in-reply-to:content-type:content-transfer-encoding; q=dns; s= default; b=B8tDTUKpgca2L/sjbgx9dhqeLjNZhorhcLArIdBbZKjkIpNnOBsep uLqQsY75pvUZkBULloXvCtLi/T2ky9vZbFRkiBj6fdjrDR8lYXveCmV3XzRAesh/ duiMSPP8c7tzVSPW48Myq+/ZF8HtUeO1O1lhyg7WteqgMJwUwCDu3c= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:cc:subject:message-id:reply-to:references:mime-version :in-reply-to:content-type:content-transfer-encoding; s=default; bh=7Bf3Lbxd5CFJFRKbhe7PPq3qZxs=; b=vzqeyoUEOQW7cHZ1WwXTkxnNTn3D Jtk6WVkefonWIPXISRRMyf7ukuAN+ozMXvpD1DCDuAEmvFChCNwLRYdC5vXFdfOG /HAjtYEjqpj1YqQo+SPAPGpEwwz+saq4P5AQKdp8WH1T6ZcmXQalcSMC/izVyPKV Bdt/zDlXWnwbH/A= Received: (qmail 48304 invoked by alias); 13 Feb 2020 07:11:17 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 48271 invoked by uid 89); 13 Feb 2020 07:11:17 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-8.0 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=HX-Languages-Length:1006 X-HELO: us-smtp-delivery-1.mimecast.com Received: from us-smtp-1.mimecast.com (HELO us-smtp-delivery-1.mimecast.com) (207.211.31.81) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 13 Feb 2020 07:11:15 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1581577874; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=0FjWPWBovWv2u511ZFsgOZWtYsxRPc25cys9bBfVQbY=; b=CS/uE++wRfyJWgesh1afqvkB3CnV0Rz4BUW7jmsPz8NNT9svcbV9VkGNeFO8x7P0tUdt8c XQK/+cQ6NetphhqvuY6FkGIH5uEr7tPLXn14mGZ6D8QIyVPwpPnQSNq6HfKQQRiBLCkSk1 HCt9BIDDt2lPpOPkQYwiJoLh73+VLus= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-187-nTMger64MTqJRq2yuwtljQ-1; Thu, 13 Feb 2020 02:11:12 -0500 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 9AE62184AECE for ; Thu, 13 Feb 2020 07:11:11 +0000 (UTC) Received: from tucnak.zalov.cz (ovpn-116-51.ams2.redhat.com [10.36.116.51]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 2ED7560BF4; Thu, 13 Feb 2020 07:11:11 +0000 (UTC) Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.15.2/8.15.2) with ESMTP id 01D7B9fp015885; Thu, 13 Feb 2020 08:11:09 +0100 Received: (from jakub@localhost) by tucnak.zalov.cz (8.15.2/8.15.2/Submit) id 01D7B8eo015884; Thu, 13 Feb 2020 08:11:08 +0100 Date: Thu, 13 Feb 2020 08:11:08 +0100 From: Jakub Jelinek To: David Malcolm Cc: gcc-patches@gcc.gnu.org Subject: testsuite: Fix g++.dg/analyzer/pr93212.C with check-c++-all Message-ID: <20200213071108.GC17695@tucnak> Reply-To: Jakub Jelinek References: <20200206202730.18584-1-dmalcolm@redhat.com> MIME-Version: 1.0 In-Reply-To: <20200206202730.18584-1-dmalcolm@redhat.com> User-Agent: Mutt/1.11.3 (2019-02-01) X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Disposition: inline X-IsSubscribed: yes On Thu, Feb 06, 2020 at 03:27:29PM -0500, David Malcolm wrote: > gcc/testsuite/ChangeLog: > PR analyzer/93212 > * g++.dg/analyzer/analyzer.exp: New subdirectory and .exp suite. > * g++.dg/analyzer/malloc.C: New test. > * g++.dg/analyzer/pr93212.C: New test. 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' Fixed thusly, regtested on x86_64-linux, committed to trunk as obvious. 2020-02-13 Jakub Jelinek * g++.dg/analyzer/pr93212.C: Require c++14 rather than c++11. Jakub --- gcc/testsuite/g++.dg/analyzer/pr93212.C +++ gcc/testsuite/g++.dg/analyzer/pr93212.C @@ -1,4 +1,4 @@ -// { dg-do compile { target c++11 } } +// { dg-do compile { target c++14 } } #include auto lol()