public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/105234] New: nlining failed in call to 'always_inline' 'fmt::v8::basic_format_string<Char, Args>::basic_format_string(const S&)
@ 2022-04-12  2:28 raj.khem at gmail dot com
  2022-04-12  2:49 ` [Bug c++/105234] inlining " raj.khem at gmail dot com
                   ` (16 more replies)
  0 siblings, 17 replies; 18+ messages in thread
From: raj.khem at gmail dot com @ 2022-04-12  2:28 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 105234
           Summary: nlining failed in call to 'always_inline'
                    'fmt::v8::basic_format_string<Char,
                    Args>::basic_format_string(const S&)
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: raj.khem at gmail dot com
  Target Milestone: ---

Created attachment 52786
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52786&action=edit
test case

Attached testcase fails to compile with gcc-12/mips but it works ok with gcc
11.2

$ mips-yoe-linux-musl-g++  -O0  AtomicFile.cpp.i

In file included from
/mnt/b/yoe/master/build/tmp/work/mips32r2-yoe-linux-musl/ccache/4.6-r0/ccache-4.6/src/util/Tokenizer.hpp:23,
                 from
/mnt/b/yoe/master/build/tmp/work/mips32r2-yoe-linux-musl/ccache/4.6-r0/ccache-4.6/src/Util.hpp:22,
                 from
/mnt/b/yoe/master/build/tmp/work/mips32r2-yoe-linux-musl/ccache/4.6-r0/ccache-4.6/src/AtomicFile.cpp:22:
/mnt/b/yoe/master/build/tmp/work/mips32r2-yoe-linux-musl/ccache/4.6-r0/ccache-4.6/src/third_party/fmt/core.h:
In constructor 'core::Error::Error(T&& ...) [with T = {const char (&)[31],
const std::__cxx11::basic_string<char, std::char_traits<char>,
std::allocator<char> >&, char*}]':
/mnt/b/yoe/master/build/tmp/work/mips32r2-yoe-linux-musl/ccache/4.6-r0/ccache-4.6/src/third_party/fmt/core.h:3057:41:
error: inlining failed in call to 'always_inline'
'fmt::v8::basic_format_string<Char, Args>::basic_format_string(const S&) [with
S = char [31]; typename std::enable_if<std::is_convertible<const S&,
fmt::v8::basic_string_view<Char> >::value, int>::type <anonymous> = 0; Char =
char; Args = {const std::__cxx11::basic_string<char, std::char_traits<char>,
std::allocator<char> >&, char*}]': target specific option mismatch
 3057 |   FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
      |                                         ^~~~~~~~~~~~~~~~~~~
In file included from
/mnt/b/yoe/master/build/tmp/work/mips32r2-yoe-linux-musl/ccache/4.6-r0/ccache-4.6/src/AtomicFile.cpp:25:
/mnt/b/yoe/master/build/tmp/work/mips32r2-yoe-linux-musl/ccache/4.6-r0/ccache-4.6/src/core/exceptions.hpp:57:52:
note: called from here
   57 |   : ErrorBase(fmt::format(std::forward<T>(args)...))
      |                                                    ^
/mnt/b/yoe/master/build/tmp/work/mips32r2-yoe-linux-musl/ccache/4.6-r0/ccache-4.6/src/third_party/fmt/core.h:3117:45:
error: inlining failed in call to 'always_inline' 'std::string
fmt::v8::format(format_string<T ...>, T&& ...) [with T = {const
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>
>&, char*}]': target specific option mismatch
 3117 | FMT_NODISCARD FMT_INLINE auto format(format_string<T...> fmt, T&&...
args)
      |                                             ^~~~~~
/mnt/b/yoe/master/build/tmp/work/mips32r2-yoe-linux-musl/ccache/4.6-r0/ccache-4.6/src/core/exceptions.hpp:57:52:
note: called from here
   57 |   : ErrorBase(fmt::format(std::forward<T>(args)...))
      |                                                    ^

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2022-04-13  8:36 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-12  2:28 [Bug c++/105234] New: nlining failed in call to 'always_inline' 'fmt::v8::basic_format_string<Char, Args>::basic_format_string(const S&) raj.khem at gmail dot com
2022-04-12  2:49 ` [Bug c++/105234] inlining " raj.khem at gmail dot com
2022-04-12  2:49 ` raj.khem at gmail dot com
2022-04-12  2:58 ` [Bug c++/105234] inlining failed in call to 'always_inline' 'memset': target specific option mismatch raj.khem at gmail dot com
2022-04-12  8:51 ` [Bug target/105234] " marxin at gcc dot gnu.org
2022-04-12  8:51 ` marxin at gcc dot gnu.org
2022-04-12  9:45 ` [Bug target/105234] [12 Regression] inlining failed in call to 'always_inline' 'memset': target specific option mismatch since r12-5920-g01ad8c54fdca1d marxin at gcc dot gnu.org
2022-04-12 10:32 ` jakub at gcc dot gnu.org
2022-04-12 10:33 ` jakub at gcc dot gnu.org
2022-04-12 10:45 ` jakub at gcc dot gnu.org
2022-04-12 10:49 ` redi at gcc dot gnu.org
2022-04-12 11:00 ` marxin at gcc dot gnu.org
2022-04-12 11:03 ` jakub at gcc dot gnu.org
2022-04-12 11:09 ` jakub at gcc dot gnu.org
2022-04-12 11:16 ` marxin at gcc dot gnu.org
2022-04-13  1:50 ` linkw at gcc dot gnu.org
2022-04-13  8:14 ` cvs-commit at gcc dot gnu.org
2022-04-13  8:36 ` jakub at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).