From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28939 invoked by alias); 6 Jan 2010 16:30:55 -0000 Received: (qmail 28899 invoked by uid 48); 6 Jan 2010 16:30:39 -0000 Date: Wed, 06 Jan 2010 16:30:00 -0000 Message-ID: <20100106163039.28898.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/42634] ICE with -g -O2 -std=c++0x in copy_fn_p, at cp/decl.c:9973 In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "rguenth at gcc dot gnu dot org" 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-01/txt/msg00652.txt.bz2 ------- Comment #1 from rguenth at gcc dot gnu dot org 2010-01-06 16:30 ------- Confirmed. Older releases ICE differently. Note that I don't see an ICE with -g0 but only with -g. With plain -g the code is even rejected: > ./cc1plus -quiet -std=c++0x t.ii ok > ./cc1plus -quiet -std=c++0x t.ii -g t.ii: In instantiation of 'const bool is_constructible::value': t.ii:14:30: instantiated from here t.ii:5:61: error: no matching function for call to 'is_constructible::test()' t.ii:14:30: error: 'is_constructible::value' is not a valid template argument for type 'bool' because it is a non-constant expression t.ii: In constructor 'pair::pair(const T1&, U2&&) [with U2 = Foo, = void, T1 = int, T2 = Foo]': t.ii:14:30: error: 'is_constructible::value' is not a valid template argument for type 'bool' because it is a non-constant expression -- rguenth at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jason at gcc dot gnu dot org Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Keywords| |ice-on-valid-code, rejects- | |valid Known to fail| |4.3.4 4.4.2 4.5.0 Last reconfirmed|0000-00-00 00:00:00 |2010-01-06 16:30:39 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42634