[Bug c++/114994] fmtlib named argument compiler error introduced in g++-14.1

2024-05-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114994 --- Comment #3 from Andrew Pinski --- Trying my hand at reducing this slightly.

[Bug c++/114994] fmtlib named argument compiler error introduced in g++-14.1

2024-05-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114994 --- Comment #2 from Andrew Pinski --- Note lambdas is not need can happen in any template function: ``` #include #define FMT_HEADER_ONLY #include using namespace fmt::literals; template auto test(int a) { return fmt::format("{foo}

[Bug c++/114994] fmtlib named argument compiler error introduced in g++-14.1

2024-05-08 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114994 Marek Polacek changed: What|Removed |Added Keywords||needs-reduction CC|