From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5772 invoked by alias); 25 Jun 2008 17:08:54 -0000 Received: (qmail 5671 invoked by uid 48); 25 Jun 2008 17:08:10 -0000 Date: Wed, 25 Jun 2008 17:08:00 -0000 Subject: [Bug c++/36631] New: [4.3 Regression] attribute always_inline -> sorry, unimplemented: recursive inlining X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "josep dot m dot perez at bsc dot es" 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: 2008-06/txt/msg01520.txt.bz2 The following code generates a recursive inlining error in 4.3.[01] while it did not in 4.[12]. Somehow, the bug requires having both always_inline attributes. template struct B { struct C { __attribute__((always_inline)) C(C const &c) { } }; void __attribute__((always_inline)) g(C c) { } }; void trigger(B b, B::C c) { b.g(c); } Cleanup4.ii: In function 'void trigger(B, B::C)': Cleanup4.ii:8: sorry, unimplemented: inlining failed in call to 'void B::g(B::C) [with T = int]': recursive inlining Cleanup4.ii:15: sorry, unimplemented: called from here -- Summary: [4.3 Regression] attribute always_inline -> sorry, unimplemented: recursive inlining Product: gcc Version: 4.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: josep dot m dot perez at bsc dot es GCC build triplet: x86_64-unknown-linux-gnu GCC host triplet: x86_64-unknown-linux-gnu GCC target triplet: x86_64-unknown-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36631