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:
Jakub Jelinek 2019-08-30 13:15:39 +02:00 committed by Jakub Jelinek
parent 17981e7baa
commit 8f674ddf82
2 changed files with 22 additions and 0 deletions

View File

@ -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

View 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 ()
{
}