warn about deprecated access declarations
Fabien Chêne
fabien.chene@gmail.com
Mon Dec 12 07:08:00 GMT 2011
2011/12/11 Jonathan Wakely <jwakely.gcc@gmail.com>:
> On 11 December 2011 22:22, Fabien Chêne wrote:
>>
>> Consequently, I propose to deprecate them with a warning, as clang already does.
>> So that you get a warning for the following code:
>>
>> struct A { int i; };
>> struct B : A
>> {
>> A::i; // <- warning here
>> };
>>
>> warning: access declarations are deprecated; employ using declarations
>> instead [-Wdeprecated]
>
> Whether or not it's suitable for stage 3, "employ" feels a bit clunky
> in this context, how about "access declarations are deprecated in
> favour of using-declarations" ?
Native spoker's suggestions are always very welcome, thanks !
(I was just trying to avoid using "use" ...)
--
Fabien
More information about the Gcc
mailing list