This is the mail archive of the gcc-patches@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: Patch to deprecate casts as lvalues for C


"Joseph S. Myers" <jsm@polyomino.org.uk> writes:

| +    default:
| +      pedwarn ("use of cast expressions as lvalues is deprecated");

Just to be clear:  an unconditional pedwarn is an error if -pedantic.
This is traditional behaviour in C++ land; since some C people seem to
have problems with it, I just wanted to make sure it is understood.

-- Gaby


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