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:8:14: error: invalid use of incomplete type 'struct Foo'
         Foo(0),
              ^
prog.cc:1:8: note: definition of 'struct Foo' is not complete until the closing brace
 struct Foo
        ^~~
prog.cc:9:14: error: invalid use of incomplete type 'struct Foo'
         Foo(1),
              ^
prog.cc:1:8: note: definition of 'struct Foo' is not complete until the closing brace
 struct Foo
        ^~~
prog.cc:10:14: error: invalid use of incomplete type 'struct Foo'
         Foo(2),
              ^
prog.cc:1:8: note: definition of 'struct Foo' is not complete until the closing brace
 struct Foo
        ^~~
prog.cc:6:26: error: elements of array 'constexpr const Foo Foo::table []' have incomplete type
     static constexpr Foo table[] =
                          ^~~~~
prog.cc:6:26: error: storage size of 'Foo::table' isn't known
Exit Code:
1