class.c (instantiate_type): Don't treat template-ids that don't specify any template...
authorMark Mitchell <mark@markmitchell.com>
Fri, 12 Jun 1998 09:47:04 +0000 (09:47 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Fri, 12 Jun 1998 09:47:04 +0000 (09:47 +0000)
commit2a238a974bdff827ac0d0928ca9fe10ff59e683a
treee7672496825b85cd9dad0dd7a5fe954b17903b9d
parent77a45a2ea44010cabd700d777ac8b3557021bafa
class.c (instantiate_type): Don't treat template-ids that don't specify any template arguments as...

* class.c (instantiate_type): Don't treat template-ids that don't
specify any template arguments as equivalent to ordinary
identifiers.  Use OFFSET_REF instead of SCOPE_REF to refer to
pointer-to-members for member templates.  Tidy slightly.
* cp-tree.def (TEMPLATE_ID_EXPR): Revise documentation.
* init.c (build_offset_ref): Handle template-ids like ordinary
identifiers, for the most part, but store a TEMPLATE_ID_EXPR in the
offset part of the OFFSET_REF.
* typeck.c (build_unary_op): Change check for unknown types to
look for OFFSET_REFs, not SCOPE_REFs.

From-SVN: r20442
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/cp/cp-tree.def
gcc/cp/init.c
gcc/cp/typeck.c
gcc/testsuite/g++.old-deja/g++.pt/ptrmem1.C