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


"Zack Weinberg" <zack@codesourcery.com> writes:

| Gabriel Dos Reis <gdr@integrable-solutions.net> writes:
| 
| > "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.
| 
| Not in the C front end it isn't.

It is therefore C people's responsability to be careful about its use.
Which precisely is why I made the remark.

-- Gaby


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