String conditional operation gives compile error
This is an error compiling generated C++ code. I assume it is related to SV string type functionality, but it could be something else.
I tried to make the test case smaller (it is now about 20 lines), but if I remove additional lines of code the code compiles and runs properly. Verilator Git HEAD from a couple of days ago was used.
I attached a tarball containing the example and generated code. To reproduce the issue do:
tar -xvf bugreport.tgz cd bugreport/sim export VERILATOR_ROOT=??? make
Regards, Iztok Jeras
#1 Updated by Wilson Snyder about 1 year ago
- Subject changed from compile error in generated C++ files, probably SV string related to String conditional operation gives compile error
- Category set to TranslationError
- Status changed from New to Resolved
- Assignee set to Wilson Snyder
The problem is related to conditional ? : operators not propagating the string type.
Fixed in git towards 4.000.
Also available in: Atom