From patchwork Thu Jul 13 12:02:49 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yvan Roux X-Patchwork-Id: 107673 Delivered-To: patch@linaro.org Received: by 10.182.45.195 with SMTP id p3csp2180049obm; Thu, 13 Jul 2017 05:03:10 -0700 (PDT) X-Received: by 10.101.88.139 with SMTP id d11mr9095303pgu.283.1499947390270; Thu, 13 Jul 2017 05:03:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1499947390; cv=none; d=google.com; s=arc-20160816; b=t/1xdWthQ3NBtcdZm7Qf4ZGMXv86M4vIn40I9ZaW/Tl/FaUq4zb0Of9jTQzctj5sEA FFvIHlmFFnx8hoqpcvgQz3q1W9cmJF4qxn5fPphuMH5L3H/FxI9Gl4fUrWyUQKjge4GN FOiqEIDp3I5Ex7BjqxmmsE53EoaEpaxE9MMPQZYQxYtZxh+zeB4tjNIRjPn2JbRNig07 AFKyr/o+ELFmTaXaw/5XYqArwkrS+mYyWa5bh7xyQsMFDamYGeakg/Exl/bVyUOdtsRK B5PTtIXQfRSjXFuf0eY176WQNpKxtfwMvjitbYOTe/2LFV1PQ/OmYVmAUlw9Fv5eMllH v65g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:mime-version:delivered-to:sender :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mailing-list:dkim-signature:domainkey-signature :arc-authentication-results; bh=QiunIwiMuDr0x3HQyapmAjqc4bHhqZ7XM71OuC75r2s=; b=UyLNgXcLkZ012T/ppqck/m3m26nGufkKRl16RJUxiS+7nGqxtDEXLsujj0twCqwqMT DP4y3YXNiZ0jh8Wp6sdXZKwP2FrGuYLsmzNQL7auHFHR/41ieTCGriiOoNyoZhPiZLdr WoWGKhedCGCjHM1ETl+o7CB/hqP9qJrk1zzSBplf9GUYeljxVxb0unV72rT0yeNG5rjD Yz17BGAACpm+2P/x2Nw6j2TXxsHYVafrlg09Iq8rkwmPJgwNPt/eesf3h2Ez1yCJzQcr fKq5H+CLmuCTwiMq68FrBNRe7ITgJwib4xJYLIATURd1I2LpsufTf/J4yIecQKPOL/Iz ZSxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.b=P0mcqyxj; spf=pass (google.com: domain of gcc-patches-return-458081-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=gcc-patches-return-458081-patch=linaro.org@gcc.gnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id 1si4145339pgm.406.2017.07.13.05.03.10 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 13 Jul 2017 05:03:10 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-return-458081-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.b=P0mcqyxj; spf=pass (google.com: domain of gcc-patches-return-458081-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=gcc-patches-return-458081-patch=linaro.org@gcc.gnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :mime-version:from:date:message-id:subject:to:cc:content-type; q=dns; s=default; b=QwXIw7uVHMwPmLRKq41GGWyf2r5cABG1QS5Az2jX5er HgG2INJmTRPWbsOcQmfJIKasXOz5Sn7rPJMqcGQGEB/s+YAGn3PEGeh/t2NINbQE v8DASNX0iZVvumukaGgK+FVQLQdlZjB9f/TZGYWPcnGvbe56/tC8P2BTZxHUVyr8 = 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 :mime-version:from:date:message-id:subject:to:cc:content-type; s=default; bh=dqjO/k88H7moh/dQ757g+jsLOtY=; b=P0mcqyxj3zDvyy5wA XT5g+BZ8+ia7JNyb4QiTtbblypqYXNXs/lGZ1iQk8Im8Ft9EnLs9qVocXXrydSh6 iQyOsEs+QLqgnZ//ZwomTrwXWsR1RGYmxQzJxSO9dCiBQfOwpS8vAWFLRZB60Jz5 wT96PGgSLEhHnEqq5xDAEqlaFA= Received: (qmail 52551 invoked by alias); 13 Jul 2017 12:02:54 -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 51146 invoked by uid 89); 13 Jul 2017 12:02:52 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-24.8 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mail-yw0-f181.google.com Received: from mail-yw0-f181.google.com (HELO mail-yw0-f181.google.com) (209.85.161.181) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 13 Jul 2017 12:02:51 +0000 Received: by mail-yw0-f181.google.com with SMTP id v193so21485104ywg.2 for ; Thu, 13 Jul 2017 05:02:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=XUlyQJh5ybaKSCvdHOr2+4iUYOFLnENtfk6pLrTPr0A=; b=OBfsQ/Pm5ebEH/2NTLWNO6d+bl13bj82FT2l/k6/yxOeigyqF7mvQG7p3nWcmzHuH5 ARqYD2RoBz6B6jUveQlEwSWk9Mc/K1qnu8nhJLAJf38rtE2zoI2hzH+quTcFKh56Jzk5 cQjmTezc33YlzIvmuQJcoE6tDK7K5gibnlKyAddDUkXE5RzaviWIp9khj3XvhQ140zy/ qjnYgahnbIoPgTxg6KOETA2xbmvyzSIkdyoS5pkVHE8u8Dk8Fk0jKMcMrQ9q9G8W7n7M KgJWW4xt/KA7gF2o/S+orZH5+9GBT/+QYnw/mZHBCPMJYSQklU8wYxepkaFyfFY8PlYB 2HLg== X-Gm-Message-State: AIVw110UfwYlSRc8qBG5BHTiryaQ8GAfk9DRD6WjkA5phmJeZ9sV5u4D cwxGfhtKtZVDaz1mDnnp76jbYr79ccuw/5xCCQ== X-Received: by 10.13.210.196 with SMTP id u187mr1615737ywd.218.1499947369611; Thu, 13 Jul 2017 05:02:49 -0700 (PDT) MIME-Version: 1.0 Received: by 10.37.53.8 with HTTP; Thu, 13 Jul 2017 05:02:49 -0700 (PDT) From: Yvan Roux Date: Thu, 13 Jul 2017 14:02:49 +0200 Message-ID: Subject: [PATCH] PR c++/80287 add new testcase To: "gcc-patches@gcc.gnu.org" Cc: Bernd Edlinger , Jason Merrill X-IsSubscribed: yes Hi, as discussed in the PR, this patch adds a new reduced testcase which doesn't rely on c++17 features, this is a prereq to the backport of the fix into GCC 6 branch which is impacted by this issue. Validated on x86, ARM and AArch64 targets. Ok for trunk ? and maybe on gcc-7-branch ? Thanks, Yvan gcc/testsuite 2017-07-13 Yvan Roux PR c++/80287 * g++.dg/pr80287.C: New test. diff --git a/gcc/testsuite/g++.dg/pr80287.C b/gcc/testsuite/g++.dg/pr80287.C new file mode 100644 index 00000000000..da8d3fab150 --- /dev/null +++ b/gcc/testsuite/g++.dg/pr80287.C @@ -0,0 +1,13 @@ +// PR c++/80287 +// { dg-do compile { target c++11 } } +// { dg-options "-g" } + +struct A { + operator long() {} +} __attribute__((__may_alias__)); + +struct { + A ino; +} a; + +char b = a.ino;