From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8284 invoked by alias); 16 Apr 2014 08:32:11 -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 Received: (qmail 8230 invoked by uid 48); 16 Apr 2014 08:32:08 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug ipa/60854] [4.9/4.10 Regression] inline constructor of extern template Date: Wed, 16 Apr 2014 08:32:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ipa X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: 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: 4.9.1 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc component target_milestone short_desc everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-04/txt/msg01153.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60854 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2014-04-16 CC| |hubicka at gcc dot gnu.org Component|c++ |ipa Target Milestone|--- |4.9.1 Summary|inline constructor of |[4.9/4.10 Regression] |extern template |inline constructor of | |extern template Ever confirmed|0 |1 --- Comment #1 from Richard Biener --- Not sure how the C++ 'extern template' explicit instantiation interacts with the GCC always-inline extension. But with always-inline it is an _error_ to have a function not inlined and thus we omit the body of the function. Somehow early inlining doesn't see that MyClass::MyClass is always-inline, this works in 4.8 and the constructor is always-inlined. Honza?