Jan 24, 2012Compilers can detect the first "error". In modern versions of gcc, if you use -Wwrite-strings, you'll get a message saying that you can't Compiler not showing error message - dev c++ - Stack OverflowWhy does the compiler not catch this error? - java - Stack OverflowCompiler says it cannot find file and yet reports errors in "unfound" file?C++ compiler does not detect error in class template - Stack OverflowMore results from stackoverflow.com
Jan 24, 2012When compiling C, give string constants the type "const char[length]" so that copying the address of one into a non-"const" "char *" pointer Why does the compiler not catch this error? - java - Stack OverflowCompiler says it cannot find file and yet reports errors in "unfound" file?C++ compiler does not detect error in class template - Stack OverflowWhy does the C++ compiler give errors after lines instead of on them?More results from stackoverflow.com
The compiler can only check for certain kinds of errors, such as syntax errors, type errors, or missing declarations. It cannot check for logical errors, such as incorrect assumptions, wrong calculations, or missing cases. It cannot verify that your code does what you want it to do.
The compiler can only check for certain kinds of errors, such as syntax errors, type errors, or missing declarations. It cannot check for logical errors, such as incorrect assumptions, wrong calculations, or missing cases.
The compiler can only check for certain kinds of errors, such as syntax errors, type errors, or missing declarations. It cannot check for logical errors, such as incorrect assumptions, wrong calculations, or missing cases. It cannot verify that your code does what you want it to do.