From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by sourceware.org (Postfix) with ESMTPS id A2F123853C13 for ; Thu, 12 Aug 2021 14:22:43 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org A2F123853C13 Received: by mail-wm1-x331.google.com with SMTP id f9-20020a05600c1549b029025b0f5d8c6cso7274399wmg.4 for ; Thu, 12 Aug 2021 07:22:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=4+wtrq9/iDrf8+y501xh8RhXJl+D+rAHk7D670mPO3c=; b=GbF8hC2URmQx9t+smt3inEDQyEpGu7vwJpmKRkf+J0PJGbI7dhLICUrRgcYgpKZsKi 5YhmcNAsEmyF6H3RHgQQBYl8HrbyQeDnGpK+ygVmWWjwDYzu9v60v8hg8DOlLBHS3szZ h+RCxUQU8Uw6zQRsJo5LKNLQMYIiNVdVsX6MoHlWD8EQwnObAEnWrQBmTHSKgmFbuYaR T913FkISxl7vb99u7sx04f5Z2J4L0mtVH89GLZK5bhg3b8LcdxYvVmdeX0G+dYZb3B8q JM5kZdHSAYg1s/vXqS67L41Tz1N9941akW5FvboXU7KoG25q9Nkt/PMtGXmuCp8Ff2VW EcWQ== X-Gm-Message-State: AOAM533Qd9rybFzdiss/rHmtC9cWIGKK3+/53mU8XX+eRalIoQ5Owmtq fCgANk88zGPjvpe0JuT4it7OjoK+9rA= X-Google-Smtp-Source: ABdhPJy+ol72rCRYOC8BLwqc8TPhSUDbL4MZmCxJ++Dl5PQndbUbLO5U4yz31ITvyho8QHIymT8jzw== X-Received: by 2002:a1c:9a86:: with SMTP id c128mr9051947wme.65.1628778162315; Thu, 12 Aug 2021 07:22:42 -0700 (PDT) Received: from [192.168.42.87] (pop.92-184-100-215.mobile.abo.orange.fr. [92.184.100.215]) by smtp.googlemail.com with ESMTPSA id i9sm3922005wre.36.2021.08.12.07.22.41 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 12 Aug 2021 07:22:41 -0700 (PDT) Subject: Re: [committed] libstdc++: Add #error to some files that depend on a specific standard mode To: libstdc++@gcc.gnu.org References: From: =?UTF-8?Q?Fran=c3=a7ois_Dumont?= Message-ID: <405ea661-b191-3e55-28bd-783aef8c97be@gmail.com> Date: Thu, 12 Aug 2021 16:22:39 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Content-Language: fr X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: libstdc++@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libstdc++ mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Aug 2021 14:22:45 -0000 On 12/08/21 4:04 pm, Jonathan Wakely via Libstdc++ wrote: > Give more explicit errors if these files are not built with the correct > -std options. > > libstdc++-v3/ChangeLog: > > * src/c++98/locale_init.cc: Require C++11. > * src/c++98/localename.cc: Likewise. > * src/c++98/misc-inst.cc: Require C++98. > > Tested powerpc64le-linux. Committed to trunk. > Shouldn't they be moved to src/c++11 ? I thought that things in src/c++98 were built with -std=c++98 making your patch wrong but I see it is not the case.