We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bed3aab commit 8865841Copy full SHA for 8865841
source/templates.tex
@@ -7016,7 +7016,7 @@
7016
template int *var<int>; // error: instantiated variable has type \tcode{int}
7017
7018
template<typename T> auto av = T();
7019
-template int av<int>; // OK, variable with type \tcode{int} can be redeclared with type \keyword{auto}
+template int av<int>; // OK, variable with type \tcode{auto} can be redeclared with type \keyword{int}
7020
7021
template<typename T> auto f() {}
7022
template void f<int>(); // error: function with deduced return type
0 commit comments