diff options
author | dodji <dodji@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-11-29 16:29:05 +0000 |
---|---|---|
committer | dodji <dodji@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-11-29 16:29:05 +0000 |
commit | 618cfa34ba86d869a97c1746c3c52cad034ddcf3 (patch) | |
tree | 7f5f6c6394af43677d14579fd0dec0020111c8a3 /gcc/testsuite | |
parent | a967a7ec05e82dc5159d0e597ff8759d17950078 (diff) | |
download | gcc-618cfa34ba86d869a97c1746c3c52cad034ddcf3.tar.gz |
Fix PR debug/46101
gcc/
* dwarf2out.c (lookup_type_die_strip_naming_typedef): New
function.
(scope_die_for, gen_type_die_for_member): Replace uses of
lookup_type_die with use of lookup_type_die_strip_naming_typedef.
gcc/testsuite/
* g++.dg/debug/dwarf2/typedef5.C: New test
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167246 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite')
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/debug/dwarf2/typedef5.C | 10 |
2 files changed, 15 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 7e7ef57da94..79a12a06ca4 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2010-11-29 Dodji Seketeli <dodji@redhat.com> + + PR debug/46101 + * g++.dg/debug/dwarf2/typedef5.C: New test + 2010-11-29 Iain Sandoe <iains@gcc.gnu.org> Mike Stump <mrs@gcc.gnu.org> diff --git a/gcc/testsuite/g++.dg/debug/dwarf2/typedef5.C b/gcc/testsuite/g++.dg/debug/dwarf2/typedef5.C new file mode 100644 index 00000000000..d9d058c9c8c --- /dev/null +++ b/gcc/testsuite/g++.dg/debug/dwarf2/typedef5.C @@ -0,0 +1,10 @@ +// Origin: PR debug/46101 +// { dg-options "-g -feliminate-dwarf2-dups" } +// { dg-do compile } + +typedef struct +{ + virtual void f () { } +} A; + +A a; |