diff -urN gcc-12.1.0-orig/gcc/cp/decl.cc gcc-12.1.0/gcc/cp/decl.cc
--- gcc-12.1.0-orig/gcc/cp/decl.cc	2022-05-06 16:30:57 +0900
+++ gcc-12.1.0/gcc/cp/decl.cc	2022-05-13 06:13:58 +0900
@@ -7293,7 +7293,7 @@
 	  else if (TYPE_NON_AGGREGATE_CLASS (type))
 	    {
 	      /* Don't reshape if the class has constructors.  */
-	      if (cxx_dialect == cxx98)
+	      if (0 && cxx_dialect == cxx98)
 		error_at (cp_expr_loc_or_loc (init, DECL_SOURCE_LOCATION (decl)),
 			  "in C++98 %qD must be initialized by "
 			  "constructor, not by %<{...}%>",
