From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12735 invoked by alias); 3 Nov 2010 17:37:54 -0000 Received: (qmail 12680 invoked by uid 22791); 3 Nov 2010 17:37:53 -0000 X-SWARE-Spam-Status: No, hits=-2.7 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; Wed, 03 Nov 2010 17:37:48 +0000 From: "bkoz at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/45923] constexpr diagnostic w/ non-literal X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: bkoz at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED 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" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Date: Wed, 03 Nov 2010 17:37:00 -0000 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: 2010-11/txt/msg00396.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D45923 --- Comment #5 from Benjamin Kosnik 2010-11-03 17= :37:39 UTC --- Created attachment 22256 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=3D22256 constexpr diagnostics test case #01 This is a test case that shows locality information for failed constant expressions in a simple class hierarchy. The test case is comprised of a base class with member data, and no constex= pr constructor. The error is: %$bin/H-x86_64-gcc-trunk.20101101/bin/g++ -g -std=3Dgnu++0x constexpr-diagnostics-base1.cc constexpr-diagnostics-base1.cc:18:19: error: the type =E2=80=98const derive= d=E2=80=99 of constexpr variable =E2=80=98obj=E2=80=99 is not literal The error desired is: %$bin/H-x86_64-gcc-trunk.20101101/bin/g++ -g -std=3Dgnu++0x constexpr-diagnostics-base1.cc constexpr-diagnostics-base1.cc:18:19: error: the type =E2=80=98const derive= d=E2=80=99 of constexpr variable =E2=80=98obj=E2=80=99 is not literal constexpr-diagnostics-base1.cc:8: error: base class constructor is not "constexpr"