Why does gcc throw a hissy fit if the initializer list order doesn\'t match variable order in the class?
class myClass
{
public:
int A;
int B;
myCla
The order of the initializer list does NOT matter. The declaration of your members in the class header defines the initialization order.
This is by design and required as you could have multiple ctors having totally different init list orders.
So your members will ALWAYS be initialized in the order of declaration.