This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/66961] Error parsing multiple template arguments in member initializer via assignment operator
- From: "akhripin at bostondynamics dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 21 Jul 2015 17:40:36 +0000
- Subject: [Bug c++/66961] Error parsing multiple template arguments in member initializer via assignment operator
- Auto-submitted: auto-generated
- References: <bug-66961-4 at http dot gcc dot gnu dot org/bugzilla/>
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);
};