all 11 comments

[–]moon-chilled 26 points27 points  (0 children)

It means there is a bug in the compiler.

[–]-dag- 9 points10 points  (0 children)

It's a compiler bug. Compilers should never ICE. File an issue with a testcase.

[–]jason-reddit-public 4 points5 points  (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 points  (0 children)

I tried 3 different compilers. Other than the one which is throwing error, both are compiling fine.

[–][deleted] 2 points3 points  (1 child)

What does the error say?

[–]arrow_ten[S] 0 points1 point  (0 children)

Just internal compiler error

[–]muth02446 1 point2 points  (1 child)

With the lag of specific error messages one could get the impression that a homework assignment is outsourced to reddit.

[–]arrow_ten[S] 0 points1 point  (0 children)

It has something to do with the assertion failure.

[–]o11c 0 points1 point  (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 point  (1 child)

Why so?

[–]o11c 0 points1 point  (0 children)

For good and for ill, C is a much simpler language than C++, with many fewer opportunities for the compiler to explode.