From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11680 invoked by alias); 16 Mar 2012 20:08:04 -0000 Received: (qmail 11669 invoked by uid 22791); 16 Mar 2012 20:08:03 -0000 X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 16 Mar 2012 20:07:51 +0000 From: "andy at aligature dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/52521] [C++11] user defined literals and order of declaration Date: Fri, 16 Mar 2012 20:18: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: andy at aligature dot com X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: jason at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.7.0 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-03/txt/msg01424.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52521 --- Comment #8 from Andy Webber 2012-03-16 20:06:52 UTC --- Ah, that fixes it. It could be good to update the release notes to match. Thanks to Ed Smith-Rowland, G++ now implements C++11 user-defined literals. // Not actually a good approximation. :) constexpr long double operator"" _degrees (long double d) { return d * 0.0175; } long double pi = 180_degrees; long double pi = 180.0_degrees;