re PR debug/83550 (Bad location of DW_TAG_structure_type with forward declaration...
authorJakub Jelinek <jakub@gcc.gnu.org>
Fri, 22 Dec 2017 18:04:18 +0000 (19:04 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 22 Dec 2017 18:04:18 +0000 (19:04 +0100)
commit14ec014e7614d927f5365704a2defaa3b9f44328
tree1d0e411772a84b014560c0f0d6bdacd33b04ea34
parent11d29d639f4b60f51a593932529be6895b613d4c
re PR debug/83550 (Bad location of DW_TAG_structure_type with forward declaration since r224161)

PR debug/83550
* c-decl.c (finish_struct): Set DECL_SOURCE_LOCATION on
TYPE_STUB_DECL and call rest_of_type_compilation before processing
incomplete vars rather than after it.

* c-c++-common/dwarf2/pr83550.c: New test.

From-SVN: r255981
gcc/c-family/ChangeLog
gcc/c/ChangeLog
gcc/c/c-decl.c
gcc/cp/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/dwarf2/pr83550.c [new file with mode: 0644]