second-state / SOLL

SOLL is a new compiler for generate Ewasm from solidity and yul. See a demo here: https://asciinema.org/a/ezJqNLicn5fya02zwu4VXIo8a
https://www.secondstate.io/
377 stars 23 forks source link

[Lex] runtime error if there is a comment after the last token #73

Closed LFsWang closed 3 years ago

LFsWang commented 3 years ago
contract cont1 {

}
// I am bug
soll: /code/lib/Lex/Lexer.cpp:47: soll::SourceLocation soll::Lexer::getSourceLocation(const char*, unsigned int) const: Assertion `Loc >= BufferStart && Loc <= BufferEnd && "Location out of range for this buffer!"' failed.

Quick fix

contract cont1 {

}
// I am bug
;