Hey, guys!
So, there is a bug in the compiler for my programming language, written in C++, that results in a Stack Overflow error: https://github.com/FlatAssembler/AECforW...y/issues/5
I am interested whether I can, until I find a way fix it (I have not even diagnosed it exactly yet), at least provide a custom error message when it happens, which is informative (that the error does not seem to occur if it is compiled with GCC or if optimizations are enabled in CLANG) and links to the issue on GitHub. You can easily provide custom error messages using C signals (parts of the C++ standard library) in case of Segmentation Fault or Division by Zero Error, however, to my surprise, there does not seem to be an easy way to give a custom error messages in case of Stack Overflow error.
So, there is a bug in the compiler for my programming language, written in C++, that results in a Stack Overflow error: https://github.com/FlatAssembler/AECforW...y/issues/5
I am interested whether I can, until I find a way fix it (I have not even diagnosed it exactly yet), at least provide a custom error message when it happens, which is informative (that the error does not seem to occur if it is compiled with GCC or if optimizations are enabled in CLANG) and links to the issue on GitHub. You can easily provide custom error messages using C signals (parts of the C++ standard library) in case of Segmentation Fault or Division by Zero Error, however, to my surprise, there does not seem to be an easy way to give a custom error messages in case of Stack Overflow error.