OSDN Git Service

* class.c (instantiate_type): Don't treat template-ids that don't
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 12 Jun 1998 09:47:04 +0000 (09:47 +0000)
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 12 Jun 1998 09:47:04 +0000 (09:47 +0000)
commitf3da3176ac065dbb742f337a286961679a2deaf5
treee7672496825b85cd9dad0dd7a5fe954b17903b9d
parent57d47a6d708b63de3fb5d83ee5633d3fe7ca2d10
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@20442 138bc75d-0d04-0410-961f-82ee72b054a4
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