From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8992 invoked by alias); 6 Oct 2010 14:46:11 -0000 Received: (qmail 8980 invoked by uid 22791); 6 Oct 2010 14:46:10 -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, 06 Oct 2010 14:46:06 +0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/45908] [C++0x] ICE involving decltype: in tree_low_cst, at tree.h:4114 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: redi 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: --- X-Bugzilla-Changed-Fields: 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 Date: Wed, 06 Oct 2010 14:46: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/msg00524.txt.bz2 Message-ID: <20101006144600.OPvj4NVKG8wTs1P-dDMfIGXqeMPKoU1qSjs9EZB1bww@z> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45908 --- Comment #7 from Jonathan Wakely 2010-10-06 14:45:53 UTC --- (In reply to comment #5) > But paragraph 7 also applies (name used in a class outside a member function > body), so the name needs to be declared before its use. thanks, I missed that. So the testcase in comment 3 is invalid (I'll open a new PR for the dup diagnostic) re comment 2, is 4.5 correct to use a non-const access path to v.begin() in the trailing-return-type?