fork download
  1. template <typename T>
  2. struct X
  3. {
  4. template <typename U>
  5. using Y = U;
  6. };
  7.  
  8. template <typename T>
  9. struct Other
  10. {
  11. using Type = ::template X<T>::Y<T>;
  12. };
  13.  
  14. using ForceInstantiation = Other<int>::Type;
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:11:30: error: expected ‘;’ before ‘::’ token
  using Type = ::template X<T>::Y<T>;
                              ^
prog.cpp:11:30: error: ‘Y’ in namespace ‘::’ does not name a type
stdout
Standard output is empty