This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Compiling GCC With a C++ Compiler (g++)


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]