fork download
  1.  
  2. struct base { protected: using type = int; };
  3.  
  4. int main() { return base::type(0); }
Compilation error #stdin compilation error #stdout 0s 4176KB
stdin
Standard input is empty
compilation info
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; };
                                          ^
stdout
Standard output is empty