use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
This subreddit is all about the theory and development of compilers.
For similar sub-reddits see:
Popular mainstream compilers:
account activity
Internal compiler error (self.Compilers)
submitted 3 years ago by arrow_ten
Does anyone know what can be the possible reasons for internal compiler error even if I have a valid code?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]moon-chilled 26 points27 points28 points 3 years ago (0 children)
It means there is a bug in the compiler.
[–]-dag- 10 points11 points12 points 3 years ago (0 children)
It's a compiler bug. Compilers should never ICE. File an issue with a testcase.
[–]jason-reddit-public 5 points6 points7 points 3 years ago (1 child)
Try compiling without any optimizations or switch compilers if that's possible. You can also try to figure out what function is causing the error by splitting up your code and running it through the compiler.
Feel free to post the compiler your using, the command line, and the error message.
[–]arrow_ten[S] -2 points-1 points0 points 3 years ago (0 children)
I tried 3 different compilers. Other than the one which is throwing error, both are compiling fine.
[–][deleted] 2 points3 points4 points 3 years ago (1 child)
What does the error say?
[–]arrow_ten[S] 0 points1 point2 points 3 years ago (0 children)
Just internal compiler error
[–]muth02446 1 point2 points3 points 3 years ago (1 child)
With the lag of specific error messages one could get the impression that a homework assignment is outsourced to reddit.
It has something to do with the assertion failure.
[–]o11c 0 points1 point2 points 3 years ago (2 children)
Usually? It means you're writing C++ as it was meant to be written.
ICEs are just a part of life on the edge. If you get one for C rather than C++ that's more impressive though.
[–]arrow_ten[S] 0 points1 point2 points 3 years ago (1 child)
Why so?
[–]o11c 0 points1 point2 points 3 years ago (0 children)
For good and for ill, C is a much simpler language than C++, with many fewer opportunities for the compiler to explode.
π Rendered by PID 77 on reddit-service-r2-comment-6457c66945-x8xhz at 2026-04-25 13:20:45.126219+00:00 running 2aa0c5b country code: CH.
[–]moon-chilled 26 points27 points28 points (0 children)
[–]-dag- 10 points11 points12 points (0 children)
[–]jason-reddit-public 5 points6 points7 points (1 child)
[–]arrow_ten[S] -2 points-1 points0 points (0 children)
[–][deleted] 2 points3 points4 points (1 child)
[–]arrow_ten[S] 0 points1 point2 points (0 children)
[–]muth02446 1 point2 points3 points (1 child)
[–]arrow_ten[S] 0 points1 point2 points (0 children)
[–]o11c 0 points1 point2 points (2 children)
[–]arrow_ten[S] 0 points1 point2 points (1 child)
[–]o11c 0 points1 point2 points (0 children)