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

--- Comment #1 from sliser at mail dot ru ---
struct A1
{
    static constexpr auto SupportedVersions = {"1.1", "1.2", "1.3", "1.4"}; //
Ok
};

template<typename QQQ>
struct A2
{
    static constexpr auto SupportedVersions = {"1.1", "1.2", "1.3", "1.4"}; //
Fails
};

error: ‘std::initializer_list<const char* const>{((const char*
const*)(&<anonymous>)), 4}’ is not a constant expression
     static constexpr auto SupportedVersions = {"1.1", "1.2", "1.3", "1.4"};

Reply via email to