delorie.com/djgpp/faq/crashes/gcc-crash.html   search  
When I compile my program, the compiler crashes, but the problem seems to go away if I compile without optimization.

gcc 2.6.0 is known to have such bugs, especially when compiling C++ programs, but it can also happen for later versions. (This is usually a genuine gcc bug, not something special to djgpp.) Using #if 0 ... #endif paradigm, narrow the offending code fragment. If this fragment is syntactically and semantically correct, then rewrite it as equivalent, but syntactically different one. As an extreme measure, don't optimize.


  webmaster     delorie software   privacy  
  Copyright © 1995     Updated Feb 1995