On Wed, 11 Aug 2004, Sridhar R wrote:
- This program
- const int a=10;
- when compiled with 'gcc' it gives only warning about modification of
- const object. I think  according to ANSI Standard that should be
My gcc is
gcc (GCC) 3.3.3 20040412 (Red Hat Linux 3.3.3-7)
And it does give an error on compile about modifying a read-only variable.
Maybe a bug that was fixed?