struct base { protected: using type = int; }; int main() { return base::type(0); }
Standard input is empty
prog.cpp: In function ‘int main()’: prog.cpp:4:27: error: ‘using type = int’ is protected within this context int main() { return base::type(0); } ^~~~ prog.cpp:2:42: note: declared protected here struct base { protected: using type = int; }; ^
Standard output is empty