public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/111553] New: Incorrect visibility of std::format
@ 2023-09-23 16:52 Richard1.Kellnberger at web dot de
  2023-09-23 16:55 ` [Bug libstdc++/111553] " pinskia at gcc dot gnu.org
  2023-10-05  9:12 ` redi at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: Richard1.Kellnberger at web dot de @ 2023-09-23 16:52 UTC (permalink / raw)
  To: gcc-bugs

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.

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

* [Bug libstdc++/111553] Incorrect visibility of std::format
  2023-09-23 16:52 [Bug libstdc++/111553] New: Incorrect visibility of std::format Richard1.Kellnberger at web dot de
@ 2023-09-23 16:55 ` pinskia at gcc dot gnu.org
  2023-10-05  9:12 ` redi at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-09-23 16:55 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
This is how the standard argument depedent lookup works ...

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

* [Bug libstdc++/111553] Incorrect visibility of std::format
  2023-09-23 16:52 [Bug libstdc++/111553] New: Incorrect visibility of std::format Richard1.Kellnberger at web dot de
  2023-09-23 16:55 ` [Bug libstdc++/111553] " pinskia at gcc dot gnu.org
@ 2023-10-05  9:12 ` redi at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: redi at gcc dot gnu.org @ 2023-10-05  9:12 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
This is now documented as not-a-bug:
https://gcc.gnu.org/bugs/#nonbugs_cxx

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

end of thread, other threads:[~2023-10-05  9:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-23 16:52 [Bug libstdc++/111553] New: Incorrect visibility of std::format Richard1.Kellnberger at web dot de
2023-09-23 16:55 ` [Bug libstdc++/111553] " pinskia at gcc dot gnu.org
2023-10-05  9:12 ` redi 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).