===================================================================
@@ -25046,7 +25046,7 @@ gen_member_die (tree type, dw_die_ref co
the TREE node representing the appropriate (containing) type. */
/* First output info about the base classes. */
- if (binfo)
+ if (binfo && early_dwarf)
{
vec<tree, va_gc> *accesses = BINFO_BASE_ACCESSES (binfo);
int i;
===================================================================
@@ -0,0 +1,14 @@
+// { dg-lto-do link }
+// { dg-lto-options { { -O2 -fPIC -flto } } }
+// { dg-extra-ld-options "-shared -g" }
+
+class a {};
+class b : virtual a {
+public:
+ void operator<<(bool);
+};
+void c() try {
+ b d;
+ d << "";
+} catch (int) {
+}