blob: 21724e047962d5d6c059b9c0764801115e0af0aa [file] [log] [blame]
// PR c++/82593
// { dg-do compile { target c++11 } }
// { dg-options "" }
enum {
INDEX1 = 0,
INDEX2
};
class SomeClass {
public:
SomeClass();
private:
struct { int field; } member[2];
};
SomeClass::SomeClass()
: member{
[INDEX1] = { .field = 0 },
[INDEX2] = { .field = 1 }
}
{
}