From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26565 invoked by alias); 15 Oct 2010 15:05:44 -0000 Received: (qmail 26552 invoked by uid 22791); 15 Oct 2010 15:05:44 -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; Fri, 15 Oct 2010 15:05:40 +0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/45983] ICE: tree code 'template_parm_index' is not supported in gimple streams with -lto 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: 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: Fri, 15 Oct 2010 15:05: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/msg01292.txt.bz2 Message-ID: <20101015150500.S4qQWkJHAbMG2lbnsc9aWEVRzQE0Lll8xmNLAP1_qKc@z> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45983 --- Comment #9 from Richard Guenther 2010-10-15 15:05:36 UTC --- More reduced testcase: template class T1 { int m[N]; typedef float scalar_type_t; typedef scalar_type_t scalar_array_t[1]; const scalar_array_t &decay(void) const; }; class T2 { public: float vals[1]; float get_value(void) const { return vals[0]; } }; T2 channel_params; float output_audio(void) { return channel_params.get_value(); } The scalar_type_t seems to leak through the seemingly identical array types scalar_type_t[1] and float[1].