From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12328 invoked by alias); 2 Sep 2014 10:34:06 -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 12273 invoked by uid 48); 2 Sep 2014 10:34:02 -0000 From: "dmitry.petroff at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/62282] [4.8/4.9/5 Regression] Undefined reference with __inline __attribute(__gnu_inline__) with -O0 Date: Tue, 02 Sep 2014 10:34:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 4.8.3 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dmitry.petroff at gmail dot com X-Bugzilla-Status: REOPENED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.8.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution 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-09/txt/msg00648.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62282 Dmitry Petrov changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|INVALID |--- --- Comment #9 from Dmitry Petrov --- Jakub, so you telling that different behaviour of gcc and g++ is ok in this case? With gcc inline + gnu_inline does not yields undefined references. And before you advice me to not use such constructions in my code, please note that problem appears in gperf output. So people have to use ugly #undef workarounds or even more ugly sed tricks or just don't use gperf's C output with g++ when debugging. And I'm sorry to be that insistent but >G++ 4.3 was the first release to support gnu_inline attribute in C++ is not true: g++-4.1 supported gnu_inline at some point: http://www.redhat.com/archives/fedora-extras-commits/2007-September/msg00089.html