Tracing out error that causes compiler crash
Nick Treleaven
nick at geany.org
Sun Sep 4 08:17:13 UTC 2022
On Saturday, 3 September 2022 at 21:20:01 UTC, solidstate1991
wrote:
> During unittest in my own fork of std.experimental.xml (link:
> https://github.com/ZILtoid1991/experimental.xml ), potentially
> an error so severe is present, that it causes to crash the
> compiler (both DMD and LDC2, on Windows). I was able to
> separate the issue by commenting out all unittests, then
> re-enabling them one-by-one seeing when it crashes the
> compiler, but wasn't able to track down the issues. However,
> `domimpl.d` is a 2000+ line monster, with a huge templated
> class that nests multiple other classes.
You may be able to use dustmite to automatically reduce the code
to a minimal test case:
https://dlang.org/blog/2020/04/13/dustmite-the-general-purpose-data-reduction-tool/
Send my regards to the planet smasher.
More information about the Digitalmars-d-learn
mailing list