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: [4.7] Fix a couple of C++isms


On Sun, Apr 21, 2013 at 2:13 PM, Jeff Law <law@redhat.com> wrote:
> On 04/21/2013 01:59 AM, Eric Botcazou wrote:
>>
>> Bootstrapped/regtested on x86_64-suse-linux, applied as obvious.
>>
>>
>> 2013-04-21  Eric Botcazou  <ebotcazou@adacore.com>
>>
>>         * cfgexpand.c (avoid_complex_debug_insns): Fix C++ism.
>> cp/
>>         * parser.c (cp_parser_late_return_type_opt): Likewise.
>
> Umm, I thought declaring at first use (or near first use) was one of the
> approved C++-isms?

Yes but not for 4.7.x which is still written in C90.

Thanks,
Andrew

>
> http://gcc.gnu.org/wiki/CppConventions
>
>
> Jeff
>


On Sun, Apr 21, 2013 at 2:13 PM, Jeff Law <law@redhat.com> wrote:
> On 04/21/2013 01:59 AM, Eric Botcazou wrote:
>>
>> Bootstrapped/regtested on x86_64-suse-linux, applied as obvious.
>>
>>
>> 2013-04-21  Eric Botcazou  <ebotcazou@adacore.com>
>>
>>         * cfgexpand.c (avoid_complex_debug_insns): Fix C++ism.
>> cp/
>>         * parser.c (cp_parser_late_return_type_opt): Likewise.
>
> Umm, I thought declaring at first use (or near first use) was one of the
> approved C++-isms?
>
> http://gcc.gnu.org/wiki/CppConventions
>
>
> Jeff
>


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