Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 7 years ago

Language

Compiler

Options

Author

anonymous

over 7 years ago

$
prog.cc:3:38: error: field has incomplete type 'ns::Incomplete'
template <class T> struct Holder { T value; };
                                     ^
prog.cc:10:5: note: in instantiation of template class 'Holder<ns::Incomplete>' requested here
    private_foo(p); // Error: IncompleteType is incomplete.
    ^
prog.cc:1:23: note: forward declaration of 'ns::Incomplete'
namespace ns { struct Incomplete; }
                      ^
1 error generated.
Exit Code:
1