Language
C++
Compiler
gcc HEAD 9.0.0 20190107 (experimental)
Options
Warnings
Boost 1.69.0
C++2a(GNU)
no pedantic
$ g++ prog.cc -Wall -Wextra -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.0 20190107 (experimental)
Author
anonymous
over 6 years ago
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.69.0/gcc-head/include -std=gnu++2a
prog.cc:7:24: error: no declaration matches 'int C<T>::x(typename S<T>::size)'
7 | template <class T> int C<T>::x(S<T>::size);
| ^~~~
prog.cc:7:24: note: no functions named 'int C<T>::x(typename S<T>::size)'
prog.cc:1:27: note: 'struct C<T>' defined here
1 | template <class T> struct C {
| ^