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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1
   Target Milestone|---                         |12.3
            Summary|auto deduces wrong type for |[12/13 Regression] auto
                   |function pointer            |deduces wrong type for
                   |                            |function pointer
   Last reconfirmed|                            |2022-09-08

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Reduced testcase:
template <typename T>
struct CoordTraits
{
    static auto GetX(T const &p) { return 1; }
};
typedef CoordTraits<int> Traits;
static constexpr auto GetX = Traits::GetX;

Reply via email to