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: module level flags


Bruce Korb <bkorb@pacbell.net> writes:


[...]

| If the standard says otherwise, then this construct:
| 
|    (mumble*)&stumble
| 
| where 'stumble' is not of type 'mumble' must be deemed a
| hard error.

Not necessarily.  The C abstract machine has a notion of "effective
type" and "compatible type". The cast by itself is not an error (and I
see no reason why it should be considered such).  It is dereferencing
the resulting pointer that could be deemed an error if stumble isn't
really a mumble nor of type compatible with mumble.

-- Gaby


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