From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19626 invoked by alias); 11 Oct 2010 09:31:06 -0000 Received: (qmail 19617 invoked by uid 22791); 11 Oct 2010 09:31:05 -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; Mon, 11 Oct 2010 09:31:01 +0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/44561] using nullptr_t with -flto/-fwhopr causes ICE: tree code 'lang_type' is not supported in gimple streams X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Keywords: lto X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: rguenth 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: Mon, 11 Oct 2010 09:31: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/msg00862.txt.bz2 Message-ID: <20101011093100.-qB7Z89FAFFzjozeyWiWL3maMW5zDOcIo9PoGNJoj8E@z> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44561 --- Comment #6 from Richard Guenther 2010-10-11 09:30:57 UTC --- New problems. typedef decltype(nullptr) nullptr_t; class shared_ptr { public: shared_ptr(nullptr_t __p); }; shared_ptr p = nullptr; exposes a nullptr constant (INTEGER_CST of LANG_TYPE). Of course build_int_cst_wide doesn't like this at all. From cp/decl.c:cxx_init_decl_processing(): nullptr_node = make_node (INTEGER_CST); TREE_TYPE (nullptr_node) = nullptr_type_node; :( One more reason to make NULLPTR_TYPE a regular middle-end tree code.