Fix -Wshadow warnings in sygus_grammar_cons.cpp. (#3986)
authorAina Niemetz <aina.niemetz@gmail.com>
Tue, 10 Mar 2020 16:27:19 +0000 (09:27 -0700)
committerGitHub <noreply@github.com>
Tue, 10 Mar 2020 16:27:19 +0000 (09:27 -0700)
src/theory/quantifiers/sygus/sygus_grammar_cons.cpp

index 17cc6bf9e252ea9b7a5fc96c9bb1437de6653701..07340841cbc650f34cab85ca51f69cf3b3045c81 100644 (file)
@@ -841,10 +841,10 @@ void CegGrammarConstructor::mkSygusDefaultGrammar(
       std::vector<TypeNode> cargsBinary;
       cargsBinary.push_back(unres_t);
       cargsBinary.push_back(unres_t);
-      for (const Kind k : bin_kinds)
+      for (const Kind kind : bin_kinds)
       {
-        Trace("sygus-grammar-def") << "...add for " << k << std::endl;
-        sdts[i].addConstructor(k, cargsBinary);
+        Trace("sygus-grammar-def") << "...add for " << kind << std::endl;
+        sdts[i].addConstructor(kind, cargsBinary);
       }
     }
     else if (types[i].isDatatype())