fork(1) download
  1.  
  2. template<typename T>
  3. struct Outer
  4. {
  5. struct Inner;
  6.  
  7. auto f(Inner) -> void;
  8. };
  9.  
  10. template<class T>
  11. auto Outer<T>::f(Inner) -> void
  12. {
  13.  
  14. }
  15.  
  16. int main() {}
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:11:23: error: variable has incomplete type 'Outer::Inner'
auto Outer<T>::f(Inner) -> void
                      ^
prog.cpp:5:12: note: forward declaration of 'Outer::Inner'
    struct Inner;
           ^
1 error generated.
stdout
Standard output is empty