]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
c++: add missing auto_diagnostic_group
authorMarek Polacek <polacek@redhat.com>
Fri, 5 Jun 2026 17:43:29 +0000 (13:43 -0400)
committerMarek Polacek <polacek@redhat.com>
Fri, 5 Jun 2026 17:53:29 +0000 (13:53 -0400)
Forgot this in r17-1355-gf213d6591640f7.

gcc/cp/ChangeLog:

* pt.cc (check_explicit_inst_of_var_template): Add
auto_diagnostic_group.

gcc/cp/pt.cc

index ba2d14fa73dd0bb9f646ce71d1ffadeb99627d89..891e89f1d763962217d24e80e31ff960ac9fad4c 100644 (file)
@@ -2885,6 +2885,7 @@ check_explicit_inst_of_var_template (tree inst, tree decl)
     /* All good.  */
     return true;
 
+  auto_diagnostic_group d;
   error ("type %qT for explicit instantiation %qD does not match declared "
         "type %qT", type2, decl, type1);
   inform (DECL_SOURCE_LOCATION (inst), "variable template declared here");