#include <iostream> using namespace std; class B { }; class D : public const B { }; int main() { }
Standard input is empty
prog.cpp:6:18: error: expected class-name before ‘const’ prog.cpp:6:18: error: expected ‘{’ before ‘const’ prog.cpp:6:26: error: invalid type in declaration before ‘{’ token prog.cpp:6:26: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11 [enabled by default] prog.cpp:7:1: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11 [enabled by default]
Standard output is empty