From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E5CF53858C66; Sat, 23 Sep 2023 16:52:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E5CF53858C66 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1695487953; bh=sR9g7vYA4QURgeTEJaiJnSKoRe1uR9c7wEvrk/EBkRE=; h=From:To:Subject:Date:From; b=GKlD7gKBC9w3Ka9qFDQC6CyDsTlYn4neIYKI3+L2v2xJiF/AxO/z7xacUOqvDk+o8 9f9wJZmE2x/ZzhzadpLWqRxhrHYkBzX3BVZ+4Gm27CPur++HAoBrL1UF38gzMdWZiu IioK/r2siSmKbkYWacleI3QtVLdk5He3/rHQd6ms= From: "Richard1.Kellnberger at web dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/111553] New: Incorrect visibility of std::format Date: Sat, 23 Sep 2023 16:52:33 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 13.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: Richard1.Kellnberger at web dot de X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D111553 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=3Dc++20 the following compiles successfully even so it should not. #include int main(int argc, char* argv[]) { std::string a("a"); return format("a{}", a)!=3D"aa"; } Passing an int, float, bool or a string literal to format instead raises the correct not declared error.=