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

            Bug ID: 115231
           Summary: [C++20] [Modules] deduction guides reachability
           Product: gcc
           Version: 14.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: huangqinjin at gmail dot com
  Target Milestone: ---

Refer to https://eel.is/c++draft/temp.deduct.guide#nt:deduction-guide,

> Deduction guides are not found by name lookup.
> Instead, when performing class template argument deduction,
> all reachable deduction guides declared for the class template are considered.

GCC cannot find the deduction guides that are not exported, while both Clang
and MSVC can.

https://godbolt.org/z/9rW3TTMMM

Reply via email to