Before you start to mark this as an duplicate I've already read this but my question is about MSVS compiler. The linked question talks about g++ compiler.
I tried this program on MSVS 2015 compiler that is last updated on 3 Nov, 2015 here
class Test
{ };
int main()
{ const Test t; }
according to default initialization the above program should fail in compilation. It says that:
If T is a const-qualified type, it must be a class type with a user-provided default constructor.
So, diagnosis is required in case of above program. But MSVS isn't giving any proper diagnosis. MSVS seems non-confirming here according to C++ standard. Is this bug in MSVS also like as in g++?