================
@@ -3003,6 +3003,12 @@ bool Sema::AttachBaseSpecifiers(CXXRecordDecl *Class,
   // Copy non-redundant base specifiers into permanent storage.
   unsigned NumGoodBases = 0;
   bool Invalid = false;
+
+  if (getLangOpts().HLSL && Bases.size() > 1) {
+    Diag(Bases[1]->getBeginLoc(), diag::err_hlsl_mult_inheritance);
+    Invalid = true;
----------------
spall wrote:

Yes it does; I implemented your suggestion of resizing bases and added a test 
case.

https://github.com/llvm/llvm-project/pull/243555
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to