Closed rurban closed 2 years ago
AR_ge 2 is wrong. 1 is enough. a helptext would also be useful, that a num_iter arg is expected. also that the cpython and go sources are expected there
$ build/py_standalone_test #0 0x00005623ebdf6b81 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/home/rurban/Software/langcc/build/py_standalone_test+0x246b81) #1 0x00005623ebbe1be0 void AT<int, int>(bool, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int, int) /home/rurban/Software/langcc/./src/langcc_util.hpp:1222:19 #2 0x00005623ebbcb373 std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_data() const /usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/basic_string.h:235:28 #3 0x00005623ebbcb373 std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_is_local() const /usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/basic_string.h:275:16 #4 0x00005623ebbcb373 std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_dispose() /usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/basic_string.h:286:7 #5 0x00005623ebbcb373 std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string() /usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/basic_string.h:795:9 #6 0x00005623ebbcb373 void AR_ge<int, int>(int, int) /home/rurban/Software/langcc/./src/langcc_util.hpp:1266:9 #7 0x00005623ebbcb373 main /home/rurban/Software/langcc/src/py_standalone_test.cpp:23:5 #8 0x00007fcdf55b6d90 __libc_start_call_main ./csu/../sysdeps/nptl/libc_start_call_main.h:58:16 #9 0x00007fcdf55b6e40 call_init ./csu/../csu/libc-start.c:128:20 #10 0x00007fcdf55b6e40 __libc_start_main ./csu/../csu/libc-start.c:379:5 #11 0x00005623ebbcae15 _start (/home/rurban/Software/langcc/build/py_standalone_test+0x1ae15) Assertion failed: comparison Expected: >= 2 Received: 1 py_standalone_test: ./src/langcc_util.hpp:1228: void AT(bool, const std::string &, Ts...) [Ts = <int, int>]: Assertion `cond' failed. Aborted (core dumped)
ubuntu 22.04 with all deps
Improved usage and error messages in 4c7c8dc.
AR_ge 2 is wrong. 1 is enough. a helptext would also be useful, that a num_iter arg is expected. also that the cpython and go sources are expected there
ubuntu 22.04 with all deps