From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19807 invoked by alias); 27 Oct 2010 22:56:10 -0000 Received: (qmail 19798 invoked by uid 22791); 27 Oct 2010 22:56:09 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,MISSING_MID 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, 27 Oct 2010 22:56:05 +0000 From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/46058] [4.5/4.6 Regression] gcc crashes with lvalue error on the following Code X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.5.2 X-Bugzilla-Changed-Fields: Keywords Status Last reconfirmed Target Milestone Summary Ever Confirmed 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, 27 Oct 2010 22:56: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-10/txt/msg02364.txt.bz2 Message-ID: <20101027225600.ia7xxT6kbHj1dljj5Rhq396XYsyJdN-7-cix0WxgaG8@z> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D46058 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |ice-on-valid-code Status|UNCONFIRMED |NEW Last reconfirmed| |2010.10.27 22:55:58 Target Milestone|--- |4.5.2 Summary|gcc crashes with lvalue |[4.5/4.6 Regression] gcc |error on the following Code |crashes with lvalue error | |on the following Code Ever Confirmed|0 |1 --- Comment #2 from Andrew Pinski 2010-10-27 2= 2:55:58 UTC --- <<< Unknown tree: scope_ref struct StringLiterals dec >>> StringLiterals is not dependent so the scope_ref should have been resolved. 4.3.2 gave: t.cc:12: error: =E2=80=98StringLiterals::dec=E2=80=99 cannot appear in a co= nstant-expression t.cc:12: error: template argument 3 is invalid But I think that is incorrect as that is a static field. Note 4.5.0 20100401 (experimental) [trunk revision 157933] accepted the co= de though.