diff options
Diffstat (limited to 'gcc/cp/pt.c')
-rw-r--r-- | gcc/cp/pt.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c index 2e58ed9..dfe7791 100644 --- a/gcc/cp/pt.c +++ b/gcc/cp/pt.c @@ -1945,6 +1945,10 @@ determine_specialization (tree template_id, { error ("template-id %qD for %q+D does not match any template " "declaration", template_id, decl); + if (header_count && header_count != template_count + 1) + inform (input_location, "saw %d %<template<>%>, need %d for " + "specializing a member function template", + header_count, template_count + 1); return error_mark_node; } else if ((templates && TREE_CHAIN (templates)) |