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

Patrick Palka <ppalka at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tkaminsk at gcc dot gnu.org

--- Comment #6 from Patrick Palka <ppalka at gcc dot gnu.org> ---
Relatedly, decltype(V) where V is an NTTP can also incorrectly return a
reference type:

template<auto V, class T = decltype(V)>
struct A { using type = T; };

constexpr int N = 42;

template<class T>
constexpr const int& f(T) { return N; }

template<class T>
using AT = A<f(T())>;

using type = int;
using type = typename AT<int>::type; // bogus error: const int& != int

Reply via email to