C++, fix lookup of full template specializations with no template arguments

This commit is contained in:
Jakob Lykke Andersen 2018-06-09 18:07:20 +02:00
parent 515fb53b60
commit b1e1fd0822
2 changed files with 4 additions and 0 deletions

View File

@ -23,6 +23,7 @@ Bugs fixed
* #5009: latex: a label for table is vanished if table does not have a caption
* #5048: crashed with numbered toctree
* #2410: C, render empty argument lists for macros.
* C++, fix lookup of full template specializations with no template arguments.
Testing
--------

View File

@ -3519,6 +3519,9 @@ class Symbol(object):
# and params that are packs must in the args be the name expanded
if len(templateParams.params) != len(templateArgs.args):
return True
# having no template params and no arguments is also a specialization
if len(templateParams.params) == 0:
return True
for i in range(len(templateParams.params)):
param = templateParams.params[i]
arg = templateArgs.args[i]