https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111553
Bug ID: 111553
Summary: Incorrect visibility of std::format
Product: gcc
Version: 13.2.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: Richard1.Kellnberger at web dot de
Target Milestone: ---
Using
g++ a.cpp -std=c++20
the following compiles successfully even so it should not.
#include <format>
int main(int argc, char* argv[]) {
std::string a("a");
return format("a{}", a)!="aa";
}
Passing an int, float, bool or a string literal to format instead raises the
correct not declared error.