[Bug c++/83777] New: Invalid dependent initialization of a static data member.
Zahira.Ammarguellat at intel dot com
gcc-bugzilla@gcc.gnu.org
Wed Jan 10 21:38:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83777
Bug ID: 83777
Summary: Invalid dependent initialization of a static data
member.
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: Zahira.Ammarguellat at intel dot com
Target Milestone: ---
Reproducer:
template <class T> class C
{
static const int BlockSize = T::M;
public:
static const int type = 1;
};
int foo() { return C<void*>::type == 1; }
This should be returning an error.
More information about the Gcc-bugs
mailing list