C PATCH to improve enum and struct redefinition diagnostic (PR c/79983)

Joseph Myers joseph@codesourcery.com
Tue Jun 6 16:51:00 GMT 2017


On Tue, 6 Jun 2017, Marek Polacek wrote:

> 2017-06-06  Marek Polacek  <polacek@redhat.com>
> 
> 	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.

-- 
Joseph S. Myers
joseph@codesourcery.com



More information about the Gcc-patches mailing list