* decl.c (xref_basetypes): Also check for indirect vbases.
From-SVN: r246242
+2017-03-17 Jason Merrill <jason@redhat.com>
+
+ PR c++/80073 - C++17 ICE with virtual base.
+ * decl.c (xref_basetypes): Also check for indirect vbases.
+
2017-03-16 Jason Merrill <jason@redhat.com>
* decl.c (start_enum): std::byte aliases anything.
if (max_vbases)
{
+ /* An aggregate can't have virtual base classes. */
+ CLASSTYPE_NON_AGGREGATE (ref) = true;
+
vec_alloc (CLASSTYPE_VBASECLASSES (ref), max_vbases);
if (max_dvbases)
--- /dev/null
+// PR c++/80073
+// { dg-do compile { target c++11 } }
+
+struct A {};
+
+struct B : virtual A {};
+
+struct C : B {} c {};