Tested x86_64-pc-linux-gnu, applying to trunk.

-- >8 --
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 | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gcc/cp/pt.cc b/gcc/cp/pt.cc
index ba2d14fa73d..891e89f1d76 100644
--- a/gcc/cp/pt.cc
+++ b/gcc/cp/pt.cc
@@ -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");

base-commit: 293f343e2ce8b672ce98871e9ed2867b183e51f4
-- 
2.54.0

Reply via email to