Menu

#1040 verinum.cc:71: std::__cxx11::string process_verilog_string_quotes(const string&): Assertion `idx < str_len' failed.

devel
closed-fixed
None
5
2019-10-03
2019-09-30
Eric Rippey
No

Assertion failure on compile with attached testcase.

Linux x86_64
g++ (Ubuntu 7.4.0-9ubuntu1~18.04.york0) 7.4.0
iverilog 10.1

Output is:
ivl: verinum.cc:71: std::__cxx11::string process_verilog_string_quotes(const string&): Assertion `idx < str_len' failed.
Aborted

1 Attachments
4.v

Discussion

  • Eric Rippey

    Eric Rippey - 2019-09-30

    This also fails on the latest version from git. The only difference in output seems to be that it is now on line 72 instead of 71.

     
  • Stephen Williams

    Pushed fixes for this to both git master and v10-branch. The solution is to detect a nil character in a string literal, and report that as an error.

     
  • Stephen Williams

    • status: open --> closed-fixed
    • assigned_to: Stephen Williams
     

Log in to post a comment.