[clang] [clang-tools-extra] [Clang][Sema]Report error for non-base types in constructor initializers before causing issue in initializer order (PR #201379)

Gábor Spaits via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 23 06:31:58 PDT 2026


================
@@ -647,7 +647,7 @@ namespace gh192510 {
   };
 
   template<typename T>
-  class X: public Base {
+  class X: public Base, private C<T> {
----------------
spaits wrote:

The current version of this PR reports this as wrong code based on the discussion under the issue. I am not exactly sure that it is wrong code and its fine to report an error here.

https://github.com/llvm/llvm-project/pull/201379


More information about the cfe-commits mailing list