On 20 May 2016 at 07:05, Ville Voutilainen wrote: > On 19 May 2016 at 19:40, Jason Merrill 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?