This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/66961] Error parsing multiple template arguments in member initializer via assignment operator


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

--- Comment #2 from Alex Khripin <akhripin at bostondynamics dot com> ---
Here's a more bare bones test case, for brevity's sake

template <class T1, int value> struct NumTemplate
{
    NumTemplate(int) {}
};

struct Test
{
    enum { SIZE_1 = 1 };

    // broken :
    NumTemplate<void*, SIZE_1> array1 = NumTemplate<void*, SIZE_1>(0);
};


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]