From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5825 invoked by alias); 3 Nov 2010 20:55:55 -0000 Received: (qmail 5815 invoked by uid 22791); 3 Nov 2010 20:55:55 -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 20:55:51 +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 20:55: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/msg00429.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D45923 --- Comment #8 from Benjamin Kosnik 2010-11-03 20= :55:42 UTC --- Created attachment 22268 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=3D22268 constexpr diagnostics test case #04 This is just a test case for previously-reported-and fixed bug. Let's keep = it around to avoid regressions. %$bin/H-x86_64-gcc-trunk/bin/g++ -c -std=3Dgnu++0x constexpr-diagnostics-initalizer1.cc constexpr-diagnostics-initalizer1.cc: In function =E2=80=98int main()=E2=80= =99: constexpr-diagnostics-initalizer1.cc:21:21: in constexpr expansion of =E2= =80=98A((* & a1))=E2=80=99 constexpr-diagnostics-initalizer1.cc:21:21: error: the value of =E2=80=98a1= =E2=80=99 is not usable in a constant expression constexpr-diagnostics-initalizer1.cc:20:13: note: =E2=80=98a1=E2=80=99 was = not declared =E2=80=98constexpr=E2=80=99 What we really need is the last line, the note: 'a1' was not declared const= expr