https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91488

--- Comment #6 from gustavo <gustavo at ugr dot es> ---
the bug is still here in gcc versión 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<char>::length(const char_type*)':
/usr/include/c++/11/bits/char_traits.h:257:5: error: inlining failed in call to
'always_inline' 'constexpr bool std::__constant_string_p(const _CharT*) [with
_CharT = char]': 
  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 call to
'always_inline' 'constexpr bool std::__constant_string_p(const _CharT*) [with
_CharT = char]': 
  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: *** [<builtin>: bug] Error 1

Reply via email to