Compiling GCC With a C++ Compiler (g++)
Gabriel Dos Reis
gdr@cs.tamu.edu
Wed Oct 13 15:46:00 GMT 2004
Andreas Schwab <schwab@suse.de> writes:
| Gabriel Dos Reis <gdr@cs.tamu.edu> writes:
|
| > If you can a strcture with const-qualified field, you can modify any
| > part, except that field. (I'm talking of C here).
|
| Yes, I'm also talking about C. And in C you can have const qualified
| lvalues that ultimatively denote modifiable objects.
I forgot to acknowledge that, you have similar situations in C++ too.
When you get
const int* p;
*p is nonmodifiable, not that does not mean that the real object
behind *p is actually nonmodifiable.
But that is not the situation we have here.
-- Gaby
More information about the Gcc
mailing list