* g++.dg/debug/dwarf2/pr85550.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@266689
138bc75d-0d04-0410-961f-
82ee72b054a4
+2018-11-30 Jakub Jelinek <jakub@redhat.com>
+
+ PR debug/85550
+ * g++.dg/debug/dwarf2/pr85550.C: New test.
+
2018-11-30 Thomas Schwinge <thomas@codesourcery.com>
PR c/87924
--- /dev/null
+// 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 ()
+{
+}