fast_io: fast_io failing with GCC 13.0.1; no issues with GCC 12.2.0.

Blessings and grace. Thank you, for this wonderful library.

I’m testing Fedora 38 which provides GCC 13.0.1.

#include <fast_io.h>
$ g++ --version
g++ (GCC) 13.0.1 20230401 (Red Hat 13.0.1-0)

$ g++ -o llil4vec -std=c++20 -Wall -O3 llil4vec.cpp -I ./fast_io/include
In file included from ./fast_io/include/fast_io_core.h:49,
                 from ./fast_io/include/fast_io_freestanding.h:12,
                 from ./fast_io/include/fast_io_hosted.h:17,
                 from ./fast_io/include/fast_io.h:9,
                 from llil4vec.cpp:51:
./fast_io/include/fast_io_core_impl/utils.h: In instantiation of ‘constexpr const long unsigned int fast_io::details::compile_pow10<long unsigned int, 18>’:
./fast_io/include/fast_io_core_impl/integers/uprsv/dec.h:274:43:   required from here
./fast_io/include/fast_io_core_impl/utils.h:478:50: error: ‘constexpr T fast_io::details::compile_time_pow(T, std::size_t) [with T = long unsigned int; std::size_t = long unsigned int]’ used before its definition
  478 | inline constexpr T compile_pow10{compile_time_pow(std::remove_cvref_t<T>(10),pow)};
      |                                  ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 22 (13 by maintainers)

Most upvoted comments