diff options
author | Jason Merrill <jason@yorick.cygnus.com> | 1997-09-10 02:53:42 +0000 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 1997-09-09 22:53:42 -0400 |
commit | 2ca340aed3cef22d7d9a37a2d8bf393e77bb0ea1 (patch) | |
tree | 2f242d959280ea87577b5142c645683d785e27fa /gcc/cp/pt.c | |
parent | f12bc7b53da3872bee618c163a8b2333f46680f1 (diff) | |
download | gcc-2ca340aed3cef22d7d9a37a2d8bf393e77bb0ea1.zip gcc-2ca340aed3cef22d7d9a37a2d8bf393e77bb0ea1.tar.gz gcc-2ca340aed3cef22d7d9a37a2d8bf393e77bb0ea1.tar.bz2 |
* pt.c (unify): Just return 0 for a TYPENAME_TYPE.
From-SVN: r15213
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 88af38b..83e5040 100644 --- a/gcc/cp/pt.c +++ b/gcc/cp/pt.c @@ -3141,6 +3141,12 @@ unify (tparms, targs, ntparms, parm, arg, nsubsts, strict) switch (TREE_CODE (parm)) { + case TYPENAME_TYPE: + /* In a type which contains a nested-name-specifier, template + argument values cannot be deduced for template parameters used + within the nested-name-specifier. */ + return 0; + case TEMPLATE_TYPE_PARM: (*nsubsts)++; idx = TEMPLATE_TYPE_IDX (parm); |