Language
Bash script
Compiler
bash 4.3.48(1)-release
Options
$ bash prog.sh
main.cpp:10:12: error: 'sal_wrapper' has not been declared
10 | struct T : sal_wrapper::excellent_base{
| ^~~~~~~~~~~
main.cpp:10:25: error: expected '{' before 'excellent_base'
10 | struct T : sal_wrapper::excellent_base{
| ^~~~~~~~~~~~~~
main.cpp:11:3: error: expected primary-expression before 'constexpr'
11 | constexpr T():l{}{}
| ^~~~~~~~~
main.cpp:11:3: error: expected '}' before 'constexpr'
main.cpp:10:39: note: to match this '{'
10 | struct T : sal_wrapper::excellent_base{
| ^
main.cpp:11:20: error: expected unqualified-id before '{' token
11 | constexpr T():l{}{}
| ^
main.cpp:13:19: error: virt-specifiers in 'd' not allowed outside a class definition
13 | void d(int line)override{
| ^~~~~~~~
main.cpp: In function 'void d(int)':
main.cpp:14:5: error: invalid use of 'this' in non-member function
14 | this->l = line;
| ^~~~
main.cpp: At global scope:
main.cpp:16:1: error: expected declaration before '}' token
16 | };
| ^
main.cpp: In function 'int main()':
main.cpp:20:17: error: 'sal_wrapper' has not been declared
20 | static_assert(sal_wrapper::a(sal::awesome_type{}, 2) == sal::awesome_type{}.a(2));
| ^~~~~~~~~~~
main.cpp:21:17: error: 'sal_wrapper' has not been declared
21 | static_assert(sal_wrapper::b(sal::awesome_type{}, 2) == sal::awesome_type{}.b(2));
| ^~~~~~~~~~~
main.cpp:22:17: error: 'sal_wrapper' has not been declared
22 | static_assert(sal_wrapper::c(42, 42.f) == sal::c(42, 42.f));
| ^~~~~~~~~~~
main.cpp:24:7: error: variable 'T t' has initializer but incomplete type
24 | T t = {};
| ^
main.cpp:34:20: error: 'sal_wrapper' has not been declared
34 | for(auto&& x : sal_wrapper::hypers(t))
| ^~~~~~~~~~~
Exit Code:
1