From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 11342385380C; Mon, 7 Jun 2021 08:14:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 11342385380C From: "gustavo at ugr dot es" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/91488] [9/10/11/12 Regression] char_traits::length causes "inlining failed in call to always_inline" error with -fgnu-tm -O2 -std=c++17 Date: Mon, 07 Jun 2021 08:14:45 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 10.0 X-Bugzilla-Keywords: rejects-valid, trans-mem X-Bugzilla-Severity: normal X-Bugzilla-Who: gustavo at ugr dot es X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jun 2021 08:14:46 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D91488 --- Comment #6 from gustavo --- the bug is still here in gcc versi=C3=B3n 11.1.1 20210531 (Red Hat 11.1.1-3= ) (GCC) g++ -fgnu-tm -O1 -Wall bug.cc -o bug In file included from /usr/include/c++/11/ios:40, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from bug.cc:2: /usr/include/c++/11/bits/char_traits.h: In static member function 'static constexpr std::size_t std::char_traits::length(const char_type*)': /usr/include/c++/11/bits/char_traits.h:257:5: error: inlining failed in cal= l to 'always_inline' 'constexpr bool std::__constant_string_p(const _CharT*) [wi= th _CharT =3D char]':=20 257 | __constant_string_p(const _CharT* __s) | ^~~~~~~~~~~~~~~~~~~ /usr/include/c++/11/bits/char_traits.h:368:32: note: called from here 368 | if (__constant_string_p(__s)) | ~~~~~~~~~~~~~~~~~~~^~~~~ /usr/include/c++/11/bits/char_traits.h:257:5: error: inlining failed in cal= l to 'always_inline' 'constexpr bool std::__constant_string_p(const _CharT*) [wi= th _CharT =3D char]':=20 257 | __constant_string_p(const _CharT* __s) | ^~~~~~~~~~~~~~~~~~~ /usr/include/c++/11/bits/char_traits.h:368:32: note: called from here 368 | if (__constant_string_p(__s)) | ~~~~~~~~~~~~~~~~~~~^~~~~ make: *** [: bug] Error 1=