]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
backport: re PR debug/85550 (-fdebug-types-section broken with DW_OP_addr in DW_AT_lo...
authorJakub Jelinek <jakub@redhat.com>
Fri, 30 Aug 2019 11:15:39 +0000 (13:15 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 30 Aug 2019 11:15:39 +0000 (13:15 +0200)
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

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/debug/dwarf2/pr85550.C [new file with mode: 0644]

index c90a43cd1c62e105a9e720d3e3d69ecd9d9e7d62..66ee296238b48f51dc5a2f06ec66625dd67f32a5 100644 (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
diff --git a/gcc/testsuite/g++.dg/debug/dwarf2/pr85550.C b/gcc/testsuite/g++.dg/debug/dwarf2/pr85550.C
new file mode 100644 (file)
index 0000000..72c03b9
--- /dev/null
@@ -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 ()
+{
+}