From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9314 invoked by alias); 15 Oct 2012 21:17:24 -0000 Received: (qmail 9259 invoked by uid 48); 15 Oct 2012 21:17:08 -0000 From: "peter.sommerlad at hsr dot ch" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/54413] Option for turning off compiler extensions for -std=c++11 with respect to complex/fixed-point numbers missing Date: Mon, 15 Oct 2012 21:17:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: peter.sommerlad at hsr dot ch X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2012-10/txt/msg01434.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54413 --- Comment #7 from Peter Sommerlad 2012-10-15 21:17:07 UTC --- (In reply to comment #6) > So what should these flags look like? > > -fno-complex-literals > -fno-fixed-literals looks fine in principle. > > Or should I use -W? > > Should -std=c++11, etc. set these by default > (and you turn then back on with -fcomplex-literals, -ffixed-literals?) I would happy with -ansi -std=c++11 work as I expected. turning the extensions off with just -std=c++11 would not be what you want, since existing code might rely on these extensions, only when we get -std=c++16 with my paper on UDL accepted, we should turn off these extensions, because then the standard library will ship with the UDL suffixes identical or closely to the GNU extensions.