From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30627 invoked by alias); 12 Jan 2010 13:40:03 -0000 Received: (qmail 30453 invoked by uid 48); 12 Jan 2010 13:39:52 -0000 Date: Tue, 12 Jan 2010 13:40:00 -0000 Message-ID: <20100112133952.30452.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: "doko at ubuntu dot com" 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/msg01344.txt.bz2 ------- Comment #5 from doko at ubuntu dot com 2010-01-12 13:39 ------- Created an attachment (id=19547) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19547&action=view) preprocessed source the attached testcase builds with the 4.4 branch, but not with 4.5. lowering optimization to -O1 works around the build failure. $ g++ -g -O2 -std=c++0x -c file_lie.ii In file included from /usr/include/c++/4.5/bits/move.h:38:0, from /usr/include/c++/4.5/bits/stl_pair.h:60, from /usr/include/c++/4.5/utility:71, from /usr/include/c++/4.5/unordered_map:42, from file_lie.cpp:22: /usr/include/c++/4.5/type_traits: In instantiation of 'const bool std::__is_constructible_helper::__value': /usr/include/c++/4.5/type_traits:235:5: instantiated from 'std::is_constructible' /usr/include/c++/4.5/bits/stl_pair.h:257:49: instantiated from here /usr/include/c++/4.5/type_traits:224:67: internal compiler error: in copy_fn_p, at cp/decl.c:9973 Please submit a full bug report, with preprocessed source if appropriate. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42634