Skip to content

Commit de047ed

Browse files
committed
sol 2
1 parent 064547e commit de047ed

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

compiler/src/dmd/templatesem.d

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -977,6 +977,9 @@ extern (D) MATCHpair deduceFunctionTemplateMatch(TemplateDeclaration td, Templat
977977
// doesn't match any parameter name in a templated function
978978
// Similar to the error generated in mtype.d's resolveNamedArgs
979979
error(instLoc, "no parameter named `%s`", fname.toChars());
980+
981+
// Set argi to DEFAULT_ARGI to indicate error and allow continued processing
982+
// This ensures compatibility with existing test cases
980983
argi = DEFAULT_ARGI;
981984
}
982985

0 commit comments

Comments
 (0)