Author
anonymous
over 7 years ago
Language
Compiler
Options
Author
anonymous
over 7 years ago
$
prog.cc: In instantiation of 'struct Base<Derived<int> >':
prog.cc:17:8: required from 'struct Derived<int>'
prog.cc:22:32: required from here
prog.cc:9:34: error: invalid use of incomplete type 'const struct Derived<int>'
requires(const T& t) { t.foo(); }
~~^~~
prog.cc:17:8: note: declaration of 'struct Derived<int>'
struct Derived : Base<Derived<T>> {
^~~~~~~
Exit Code:
1