From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) by sourceware.org (Postfix) with ESMTPS id 8B8CB396C0EE for ; Sat, 11 Jun 2022 12:53:34 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 8B8CB396C0EE Received: by mail-wr1-x434.google.com with SMTP id h5so1796955wrb.0 for ; Sat, 11 Jun 2022 05:53:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=jj2typVVhv4NXthMw+n59nP/R2aExuw4ga1VBkjfVmU=; b=P7ESVEwYc2hFL+TbIDBp3cu/y/8MOaxx4aKr5acBHyP7xU6fr0lASGmmu/AjArTbsQ 2KIcokSleOHfrzGfCF89ImcixZokdA9xNwMeO03bGoED6aS3rWJKhq0sqawam0wb4K9I a5/MYcJUj0oKuPy3SDmfBbXP5fZ4XYe0Uzw7gnY2pNSsUC848m6+AKylorSTiz0cEI0l dTnpzk7ddbiAVabgSNQkwTYDmx5v0oCU4FSvxOPWDiMDa7tQrdaXuGwkaK3j5YiXJNSu SaTA4gGpTwvBghTfyiBMyrI0JnGMbcHbMPPToBYLC0ayYDM9nQFTRpNkDGl8dqXYsrv0 M1fA== X-Gm-Message-State: AOAM531iGNz0GkF6GvGDdfzWkkL1ExxRA5uldnkygHMoh9TqhDAVAeRc anntAZKR3F/JqWY9c8OA5l/evi3Puunmqov65SE= X-Google-Smtp-Source: ABdhPJyuASvrwqis4m7gPSsmiN8MC1FLZPpiCs+rs7cez+Hi/VId4NHcZcJEak+XngSRY9kKmG8FjhRX7onqUPXwqxc= X-Received: by 2002:a5d:6d09:0:b0:218:45b6:8fdb with SMTP id e9-20020a5d6d09000000b0021845b68fdbmr30304595wrq.77.1654952013112; Sat, 11 Jun 2022 05:53:33 -0700 (PDT) MIME-Version: 1.0 References: <520a1013-ec4a-b3ca-871b-5e8110f61d37@gmail.com> In-Reply-To: From: Jonathan Wakely Date: Sat, 11 Jun 2022 13:53:20 +0100 Message-ID: Subject: Re: [C2x] Disallow function attributes after function identifier To: Alejandro Colomar Cc: Jakub Jelinek , "gcc@gcc.gnu.org" , Joseph Myers X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: gcc@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Jun 2022 12:53:38 -0000 On Sat, 11 Jun 2022, 10:00 Alejandro Colomar, wrote: > Hi Jonathan, > > On 6/11/22 00:47, Jonathan Wakely wrote: > > Well, I'd argue the same reasons to remove it from C++. Don't know > how > > useful that feature is for C++, though. I bet not much, but am not > an > > expert in the language. > > > > > > It's used in libstdc++ because I couldn't get an attribute to work in > > any other location, because it isn't valid at other positions in a > > constrained function template. So no, we can't remove it from C++. > > > > Hmm, okay, not removable in C++. I'm curious about the specific line of > code, if you have it around and could link to it. But C++ is huge, so > anything is to be expected :) > https://gcc.gnu.org/git/?p=gcc.git;a=blob;f=libstdc%2B%2B-v3/include/bits/ranges_base.h;h=38db33fd2ce9ea4c2a2a11035e09f41ba008515c;hb=HEAD#l111