blob: dc6ec483bff5274c374663ac7b8f7944f6490de2 [file] [log] [blame]
// Testcase from P0127R2
// { dg-do compile { target c++17 } }
template <typename T> struct S;
template <typename T, T n> struct S<int[n]> {
using Q = T;
};
typedef S<int[42]>::Q V;
typedef decltype(sizeof 0) V; // OK; T was deduced to std::size_t from the type int[42]