This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C++ PATCH] PR c++/69855
- From: Jason Merrill <jason at redhat dot com>
- To: Ville Voutilainen <ville dot voutilainen at gmail dot com>
- Cc: Paolo Carlini <paolo dot carlini at oracle dot com>, "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 27 May 2016 10:46:58 -0400
- Subject: Re: [C++ PATCH] PR c++/69855
- Authentication-results: sourceware.org; auth=none
- References: <CAFk2RUbDS6-1mzkqhF6HJAvmGuBckLpPhAWLJfRvOTg3gOHkGA at mail dot gmail dot com> <572B2210 dot 2020801 at oracle dot com> <CAFk2RUbz+_aLEdFLB8AMMZG_s9xDo4vMVzUW-T2kaGzQLFShTg at mail dot gmail dot com> <d43c2a4f-0d49-6c96-bbdc-3e5d7c1ccdd8 at redhat dot com> <CAFk2RUaiQs-jwswW4NTN1DiST3z8eQZ-=zUD5pWMOqiotDa9gQ at mail dot gmail dot com> <CAFk2RUYNb2xT_JNRsw+__CE3Bw6qM3xXSaMiEnOXK16cOwufGQ at mail dot gmail dot com>
OK, thanks.
Jason
On Fri, May 27, 2016 at 10:43 AM, Ville Voutilainen
<ville.voutilainen@gmail.com> wrote:
> On 20 May 2016 at 07:05, Ville Voutilainen <ville.voutilainen@gmail.com> wrote:
>> On 19 May 2016 at 19:40, Jason Merrill <jason@redhat.com> wrote:
>>> Any thoughts on doing something similar for extern variable declarations?
>>
>> Ah, we diagnose local extern variable declarations that clash with
>> previous declarations,
>> but we don't diagnose cases where a subsequent declaration clashes
>> with a previous
>> local extern declaration. I'll take a look.
>
> As discussed on irc, this requires teaching variable declarations to
> work with DECL_ANTICIPATED
> and is thus some amounts of surgery, so the recommendation was to go
> ahead with this patch.
> I added a comment to the new code block, an updated patch attached.
> Changelog as before.
> Ok for trunk?