[Bug debug/83550] [6 Regression] Bad location of DW_TAG_structure_type with forward declaration since r224161
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Jun 25 17:08:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83550
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Mon Jun 25 17:08:02 2018
New Revision: 262050
URL: https://gcc.gnu.org/viewcvs?rev=262050&root=gcc&view=rev
Log:
Backported from mainline
2017-12-22 Jakub Jelinek <jakub@redhat.com>
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.
Added:
branches/gcc-6-branch/gcc/testsuite/c-c++-common/dwarf2/pr83550.c
Modified:
branches/gcc-6-branch/gcc/c/ChangeLog
branches/gcc-6-branch/gcc/c/c-decl.c
branches/gcc-6-branch/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list