Language
C++
Compiler
gcc HEAD 9.0.1 20190123 (experimental)
Options
Boost 1.69.0
C++2a(GNU)
no pedantic
$ g++ prog.cc -I/opt/wandbox/boost-1.69.0/gcc-head/include -std=gnu++2a
Exit Code:
1
Author
anonymous
over 6 years ago
C++
gcc HEAD 9.0.1 20190123 (experimental)
Author
anonymous
over 6 years ago
$ g++ prog.cc -I/opt/wandbox/boost-1.69.0/gcc-head/include -std=gnu++2a
prog.cc: In instantiation of 'struct A1<B1>':
prog.cc:14:11: required from here
prog.cc:10:10: error: invalid use of incomplete type 'struct B1'
10 | void foo(typename T::TT){}
| ^~~
prog.cc:14:8: note: forward declaration of 'struct B1'
14 | struct B1:A1<B1>{
| ^~