From patchwork Tue Jun 4 16:36:00 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nina Dinka Ranns X-Patchwork-Id: 1110033 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-502327-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com 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 45JHcb4JLsz9sCJ for ; Wed, 5 Jun 2019 02:36:24 +1000 (AEST) 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=JVRDB4yuwYsCMuDCUmN+iuUjhPBCLoLTddr8KPX3B9Z N5nRwxXRRQCdvMWaloKMfALasEw+M0Ur9R7CU7S7MRsU42yf7F9rHf7ZgNZ/Bup9 dxV1w1AW/MbvgBz8tSFtHJB3K3Gd/D5hQv77Q0KwHqbqe6BIjqgqUH5LTw/Ine/4 = 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=/1sqFEvi5WkHyaTf1gAnbsns2zU=; b=ahktc4qreyF44349q EWTPVudUyBIsykWlErZtWOmaX4efaqcHJx+awA6eNGUxVPdhMQntFbfrFL8rgx4u s0sF3K+BUP320izvO2JC+BaCEvdyfCRnPSeRTr/dHfB+CibBQamLtDNK2jJz9Hj9 XKM8zwAbIhlj5jnOQlBAQtzaRs= Received: (qmail 8606 invoked by alias); 4 Jun 2019 16:36:15 -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 8540 invoked by uid 89); 4 Jun 2019 16:36:15 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-8.4 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, GIT_PATCH_2, GIT_PATCH_3, KAM_ASCII_DIVIDERS, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, SPF_PASS, SUBJ_ALL_CAPS autolearn=ham version=3.3.1 spammy=HX-HELO:sk:mail-it X-HELO: mail-it1-f180.google.com Received: from mail-it1-f180.google.com (HELO mail-it1-f180.google.com) (209.85.166.180) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 04 Jun 2019 16:36:13 +0000 Received: by mail-it1-f180.google.com with SMTP id i125so3001234ite.0 for ; Tue, 04 Jun 2019 09:36:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to:cc; bh=AS0/EyaJ7sPkO3PlfSxx6ue2rLscWbRimKuL0WHat38=; b=djWcXYPVhyXKUQToA8qeiNuH5rUO6DCIlmu9tE9H+a2t3T7Wg/hv/mCLT1H3jqBUj+ qTHXMS1iqog+JCmQKFfkb3iyN5u5Eek7c33IeEgpwn0CGyO2QUu+Ee+SFoxt17Gi7Ohz s7yvB0RwDkvEY4+zNgzneRGqET4Tji8T/Uju9DTh2N/9DY9X4qsbFjdIDRhj7CXmpDtD m6Pn/vvGYuOd3Er1c2Vu9mxWdLJvb9KCsic+fZ7wsYxPIHM+X9bniHzVDXeoNRNNnIwo wGqZTClXRUQ1NTbOb+NNcKaZosGEj+LYYuN06ObQH/7Z4ZXYHfw4klcX7x0oLESR90AX aPYg== MIME-Version: 1.0 From: Nina Dinka Ranns Date: Tue, 4 Jun 2019 17:36:00 +0100 Message-ID: Subject: PR C++/63149 To: gcc-patches List Cc: Jason Merrill Tested on Linux x86_64 2019-06-04 Nina Dinka Ranns gcc/cp PR c++/63149 * pt.c (listify_autos): use non cv qualified auto_node in std::initializer_list testsuite/ PR c++/63149 * g++.dg/cpp0x/initlist-deduce.C: New Index: gcc/cp/pt.c =================================================================== --- gcc/cp/pt.c (revision 271709) +++ gcc/cp/pt.c (working copy) @@ -26836,7 +26836,7 @@ static tree listify_autos (tree type, tree auto_node) { - tree init_auto = listify (auto_node); + tree init_auto = listify (strip_top_quals(auto_node)); tree argvec = make_tree_vec (1); TREE_VEC_ELT (argvec, 0) = init_auto; if (processing_template_decl) Index: gcc/testsuite/g++.dg/cpp0x/initlist-deduce2.C =================================================================== --- gcc/testsuite/g++.dg/cpp0x/initlist-deduce2.C (nonexistent) +++ gcc/testsuite/g++.dg/cpp0x/initlist-deduce2.C (working copy) @@ -0,0 +1,12 @@ +// Test for PR63149 +// { dg-do run { target c++11 } } + +#include + +const auto r = { 1, 2, 3 }; +using X = decltype(r); +using X = const std::initializer_list; + +int main() +{ +}