Open GoogleCodeExporter opened 9 years ago
int main() { int * p = new int[10]; delete[] p; *p = 1; } No report at -O1 or higher. And no warning, either! Even with -W -Wall -Wextra.
Original issue reported on code.google.com by euge...@google.com on 15 Jan 2015 at 10:19
euge...@google.com
GCC does detect error at runtime.
Original comment by tetra20...@gmail.com on 15 Jan 2015 at 10:48
tetra20...@gmail.com
Original issue reported on code.google.com by
euge...@google.com
on 15 Jan 2015 at 10:19