Re:Parsing C++ is literally undecidable (2013)
by msla on Friday October 04, 2019 @01:36AM
(#21155075)
I wonder if it's possible to craft a non-gigantic C++ file which causes a clang frontend to crash.
[ Parent
| on HN ]
Re:Parsing C++ is literally undecidable (2013)
by jeeyoungk on Friday October 04, 2019 @01:43AM
(#21155116)
This is possible in almost all language, even Python (!!!) - see the Stack Overflow question https://codegolf.stackexchange.com/questions/69189/build-a-c...
Re:Parsing C++ is literally undecidable (2013)
by gpderetta on Friday October 04, 2019 @05:08AM
(#21156002)
ICEs [1] used to be very common from all front ends especially with malformed template code, but now a day I think most compilers don't report an ICE to the user as long as they managed to issue at least one diagnostic.
It is still not uncommon to se ICEs on some extreme template constructs.
[1] Internal Compiler Error, i.e. the compiler segfaulted or hit an internal assertion.
Re:Parsing C++ is literally undecidable (2013)
by pnako on Friday October 04, 2019 @02:38AM
(#21155360)
There is this funny competition:
https://tgceec.tumblr.com/
You could pick the winning entries and use them as a corpus for a fuzzer and you might find compiler crashes.