On Tue, 6 Jun 2017, Marek Polacek wrote:
> 2017-06-06 Marek Polacek
>
> PR c/79983
> * c-decl.c (start_struct): Use the location of TYPE_STUB_DECL of
> ref.
> (start_enum): Use the location of TYPE_STUB_DECL of enumtype.
>
> * gcc.dg/pr79983.c: New test.
OK.
--
This patch brings better enum and struct redefinition diagnostic. In
particular,
we'll now point to the first definition in the "originally defined here" note,
not to the forward declaration.
Now, you could argue that we don't have to be setting the location by lookup_tag
at all, because we shou