Clang 20 from MacPorts does not crash, but it gives the following warning.
app/src/graph.cpp:18045:34: warning: stack nearly exhausted; compilation time may suffer, and crashes due to stack overflow are likely [-Wstack-exhausted]
18045 | "3 13 2"<<"\n"<<
| ^
The "stack nearly exhausted" in clang is apparently due to massive chained expressions in code, which are hardcoded networks.