Test intrinsics.tan fails
tjysdsg opened this issue · 1 comments
tjysdsg commented
/mnt/d/repos/tan/bin/tanc src/test/test_src/intrinsics.tan -Lruntime -lruntime -I. --print-ir
[ERROR] at src/test/test_src/intrinsics.tan:6 Invalid call to compprint, one argument with type 'str' required
@compprint("main function starts");
^
0x7fa6c4f5d5d8: (__tan_assert_fail()+0xd)
0x7fa6c4f5de70: (tanlang::report_error(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, tanlang::Token*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)+0x3f7)
0x7fa6c4ff9830: (tanlang::AnalyzerImpl::report_error(std::shared_ptr<tanlang::ParsableASTNode> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)+0x4c)
0x7fa6c50194d2: (tanlang::AnalyzerImpl::analyze_intrinsic(std::shared_ptr<tanlang::ParsableASTNode> const&)+0x522)
0x7fa6c4ff8fff: (tanlang::AnalyzerImpl::analyze(std::shared_ptr<tanlang::ParsableASTNode> const&)+0xdf3)
0x7fa6c4ff83f7: (tanlang::AnalyzerImpl::analyze(std::shared_ptr<tanlang::ParsableASTNode> const&)+0x1eb)
0x7fa6c5015c41: (tanlang::AnalyzerImpl::analyze_func_decl(std::shared_ptr<tanlang::ParsableASTNode> const&)+0x265)
0x7fa6c4ff917a: (tanlang::AnalyzerImpl::analyze(std::shared_ptr<tanlang::ParsableASTNode> const&)+0xf6e)
0x7fa6c4ff83f7: (tanlang::AnalyzerImpl::analyze(std::shared_ptr<tanlang::ParsableASTNode> const&)+0x1eb)
0x7fa6c4ff83f7: (tanlang::AnalyzerImpl::analyze(std::shared_ptr<tanlang::ParsableASTNode> const&)+0x1eb)
0x7fa6c4ff7458: (tanlang::Analyzer::analyze(std::shared_ptr<tanlang::ParsableASTNode>)+0x2a)
0x7fa6c4f5f7ed: (tanlang::Compiler::parse()+0x197)
0x7fa6c4f4d6da: (compile_files(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >, TanCompilation*)+0x47a)
0x7fa6c4f3006e: (cli_main(int, char**)+0x1335)
0x7fa6c4f438bd: (main+0x24)
0x7fa6bfdd70b3: (__libc_start_main+0xf3)
0x7fa6c4f2e04e: (_start+0x2e)
Process finished with exit code 134