fork download
  1.  
  2. template<typename T>
  3. struct container
  4. {
  5. };
  6.  
  7. struct Outer
  8. {
  9. using type_t = int;
  10. struct Inner
  11. {
  12. using container_t = container<type_t>;
  13. using type_t = Outer::type_t;
  14. };
  15. };
  16.  
  17. int main()
  18. {
  19. }
  20.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:13:31: error: declaration of ‘using type_t = using type_t = int’ [-fpermissive]
   using type_t = Outer::type_t;
                               ^
prog.cpp:9:20: error: changes meaning of ‘type_t’ from ‘using type_t = int’ [-fpermissive]
  using type_t = int;
                    ^
stdout
Standard output is empty