From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26784 invoked by alias); 16 Mar 2012 19:24:24 -0000 Received: (qmail 26769 invoked by uid 22791); 16 Mar 2012 19:24:22 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,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 19:24:05 +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 19:29: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: CC 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" Content-Transfer-Encoding: quoted-printable 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/msg01420.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D52521 Andy Webber changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |andy at aligature dot com --- Comment #6 from Andy Webber 2012-03-16 19:2= 3:18 UTC --- I've been playing around with a gcc 4.7.0 RC2 build and it seems like the u= ser defined literals might not be working at all now. Building: #include #include constexpr long double operator"" _degrees(long double d) { return d * 0.0175; } int main() { long double pi =3D 180_degrees; std::cout << pi << std::endl; } Result: literal.cpp: In function =E2=80=98int main()=E2=80=99: literal.cpp:11:21: error: unable to find numeric literal operator =E2=80=98= operator"" _degrees=E2=80=99