Your code is ill-formed as far as C++ language is concerned. In particular, the class
shouldn't compile in C++ Standard Conformant compiler. Your compiler has either bug, or it provides this feature as extension.
gives this error:
cpp.cpp:18:11: error: ISO C++ forbids zero-size array 'a' [-Wpedantic]