diff options
author | Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net> | 2001-10-13 13:11:09 +0000 |
---|---|---|
committer | Kriang Lerdsuwanakij <lerdsuwa@gcc.gnu.org> | 2001-10-13 13:11:09 +0000 |
commit | f5d47abdf7cebc497d2ee475dfc2e00e8125e879 (patch) | |
tree | 439d6c2f1c1c4b29089040da0d1474c529c38ba5 /gcc/cp/pt.c | |
parent | 45701819ced83ee12c0b3a1aecf47a30815517a5 (diff) | |
download | gcc-f5d47abdf7cebc497d2ee475dfc2e00e8125e879.zip gcc-f5d47abdf7cebc497d2ee475dfc2e00e8125e879.tar.gz gcc-f5d47abdf7cebc497d2ee475dfc2e00e8125e879.tar.bz2 |
pt.c (determine_specialization): Ignore functions without DECL_TEMPLATE_INFO.
* pt.c (determine_specialization): Ignore functions without
DECL_TEMPLATE_INFO.
From-SVN: r46243
Diffstat (limited to 'gcc/cp/pt.c')
-rw-r--r-- | gcc/cp/pt.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c index e29a738..229bccc 100644 --- a/gcc/cp/pt.c +++ b/gcc/cp/pt.c @@ -1040,6 +1040,12 @@ determine_specialization (template_id, decl, targs_out, Here, S<int>::f is a non-template, but S<int> is a template class. If FN has the same type as DECL, we might be in business. */ + + if (!DECL_TEMPLATE_INFO (fn)) + /* Its enclosing class is an explicit specialization + of a template class. This is not a candidate. */ + continue; + if (!same_type_p (TREE_TYPE (TREE_TYPE (decl)), TREE_TYPE (TREE_TYPE (fn)))) /* The return types differ. */ |