From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 103358 invoked by alias); 19 Feb 2016 16:10:08 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 103332 invoked by uid 89); 19 Feb 2016 16:10:07 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Fri, 19 Feb 2016 16:10:04 +0000 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (Postfix) with ESMTPS id A4E3E7EBAA; Fri, 19 Feb 2016 16:10:03 +0000 (UTC) Received: from tucnak.zalov.cz ([10.3.113.11]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u1JGA1GA016690 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 19 Feb 2016 11:10:03 -0500 Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.15.2/8.15.2) with ESMTP id u1JG9xwH006435; Fri, 19 Feb 2016 17:10:00 +0100 Received: (from jakub@localhost) by tucnak.zalov.cz (8.15.2/8.15.2/Submit) id u1JG9wJO006434; Fri, 19 Feb 2016 17:09:58 +0100 Date: Fri, 19 Feb 2016 16:10:00 -0000 From: Jakub Jelinek To: Jason Merrill Cc: Bernd Edlinger , "gcc-patches@gcc.gnu.org" , Jonathan Wakely Subject: Re: [C++ PATCH] Fix option handling when -std=gnu++14 is not used (PR 69865) Message-ID: <20160219160958.GQ3017@tucnak.redhat.com> Reply-To: Jakub Jelinek References: <20160219113126.GB3017@tucnak.redhat.com> <20160219115945.GC3017@tucnak.redhat.com> <20160219122212.GD3017@tucnak.redhat.com> <20160219122646.GE3017@tucnak.redhat.com> <20160219152243.GP3017@tucnak.redhat.com> <56C73CCB.4070709@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <56C73CCB.4070709@redhat.com> User-Agent: Mutt/1.5.24 (2015-08-30) X-IsSubscribed: yes X-SW-Source: 2016-02/txt/msg01346.txt.bz2 On Fri, Feb 19, 2016 at 11:03:23AM -0500, Jason Merrill wrote: > On 02/19/2016 10:51 AM, Bernd Edlinger wrote: > >+ flag_isoc94 = 0; > >+ flag_isoc99 = 0; > > Why? These flags are global variables, so they're already zero-initialized. That is true, but those global variables could have changed earlier. Don't they e.g. get set if you do: -std=c++14 -std=c++98 ? Jakub