From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8167 invoked by alias); 1 Oct 2012 18:47:50 -0000 Received: (qmail 8057 invoked by uid 48); 1 Oct 2012 18:47:33 -0000 From: "3dw4rd at verizon dot net" 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, 01 Oct 2012 18:47: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: 3dw4rd at verizon dot net 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/msg00054.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54413 --- Comment #5 from Ed Smith-Rowland <3dw4rd at verizon dot net> 2012-10-01 18:47:33 UTC --- If I remember correctly, we are supposed to parse compiler-specific extensions before UDLs - i.e. The compiler extensions get dibs. I guess that's not the issue. You propose being able to turn off (presumably all?) gcc-specific suffix extensions. Presumably, these should be on by default for C++1*? I agree we should have something like this. Detecting at the level of c-family or the lexer whether c++ has seen a definition of operator"" r or i could be ... real interesting. Perhaps we could "move" these gnu extensions to: namespace __gnucxx{ operator"" r() } somehow.