Language
C++
Compiler
gcc HEAD 8.0.0 20170827 (experimental)
Options
Warnings
Boost 1.65.0
C++1z(GNU)
-pedantic
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.65.0/gcc-head/include -std=gnu++1z -pedantic
Exit Code:
1
Author
anonymous
over 7 years ago
C++
gcc HEAD 8.0.0 20170827 (experimental)
Author
anonymous
over 7 years ago
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.65.0/gcc-head/include -std=gnu++1z -pedantic
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