PR c/79983
commit1d1d0f3759a9786f63e5e36e8a4733ff9ac10e77
authormpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 6 Jun 2017 17:40:34 +0000 (6 17:40 +0000)
committermpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 6 Jun 2017 17:40:34 +0000 (6 17:40 +0000)
tree411298b442a48b3524633e5f64427bfa4c5ed550
parent94165f282d937d77793448842b224a2c63653798
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@248927 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/c/ChangeLog
gcc/c/c-decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr79983.c [new file with mode: 0644]