From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31579 invoked by alias); 16 Jun 2006 13:47:13 -0000 Received: (qmail 31555 invoked by uid 48); 16 Jun 2006 13:47:06 -0000 Date: Fri, 16 Jun 2006 13:49:00 -0000 Message-ID: <20060616134706.31554.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug tree-optimization/28058] [4.1/4.2 regression] ICE in inline_forbidden_p In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "jakub at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2006-06/txt/msg01542.txt.bz2 List-Id: ------- Comment #1 from jakub at gcc dot gnu dot org 2006-06-16 13:47 ------- The problem seems to be that cp_cannot_inline_tree_fn changes *fnp to whatever instantiate_decl returned and that function has not been lowered yet. Not sure if it is at all possible to cgraph_lower_function from within inlinable_function_p (i.e. if cgraph_analyze_function is reentrant) and if yes, if that's supposed to be cp_cannot_inline_tree_fn's responsibility. In any case, the testcase works if foo is moved to the end of the file, at which point the template is already lowered. -- jakub at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hubicka at gcc dot gnu dot | |org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28058