mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-23 00:40:59 +08:00
backport: re PR debug/85550 (-fdebug-types-section broken with DW_OP_addr in DW_AT_location)
Backported from mainline 2018-11-30 Jakub Jelinek <jakub@redhat.com> PR debug/85550 * g++.dg/debug/dwarf2/pr85550.C: New test. From-SVN: r275072
This commit is contained in:
parent
17981e7baa
commit
8f674ddf82
@ -1,6 +1,11 @@
|
||||
2019-08-30 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
Backported from mainline
|
||||
2018-11-30 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
PR debug/85550
|
||||
* g++.dg/debug/dwarf2/pr85550.C: New test.
|
||||
|
||||
2018-11-27 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
PR c++/88181
|
||||
|
17
gcc/testsuite/g++.dg/debug/dwarf2/pr85550.C
Normal file
17
gcc/testsuite/g++.dg/debug/dwarf2/pr85550.C
Normal file
@ -0,0 +1,17 @@
|
||||
// PR debug/85550
|
||||
// { dg-do link }
|
||||
// { dg-options "-O2 -g -fdebug-types-section" }
|
||||
|
||||
struct A {
|
||||
int bar () const { return 0; }
|
||||
};
|
||||
template <int (A::*foo)() const>
|
||||
struct B {
|
||||
};
|
||||
|
||||
B<&A::bar> b;
|
||||
|
||||
int
|
||||
main ()
|
||||
{
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user