1
0
Fork 0
mirror of https://github.com/ton-blockchain/ton synced 2025-03-09 15:40:10 +00:00

[FunC] Forbid auto-creating undefined symbols

This commit is contained in:
Aleksandr Kirsanov 2024-05-02 20:54:07 +03:00
parent 4994ae8edd
commit f217a7d312
No known key found for this signature in database
GPG key ID: B758BBAA01FFB3D3
7 changed files with 40 additions and 16 deletions

View file

@ -107,8 +107,7 @@ void generate_output_func(SymDef* func_sym, std::ostream &outs, std::ostream &er
errs << "\n\n=========================\nfunction " << name << " : " << func_val->get_type() << std::endl;
}
if (!func_val->code) {
errs << "( function `" << name << "` undefined )\n";
throw src::ParseError(func_sym->loc, name);
throw src::ParseError(func_sym->loc, "function `" + name + "` is just declared, not implemented");
} else {
CodeBlob& code = *(func_val->code);
if (verbosity >= 3) {