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.

Reply via email to