* cp-tree.h (cplus_expand_constant): Declare.
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 22 May 1999 01:30:11 +0000 (01:30 +0000)
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 22 May 1999 01:30:11 +0000 (01:30 +0000)
commita17aefa2364af30316a0085cda26594aaa00521f
tree3a205f0cf17eb8c1639d2bf054726a1987381549
parent56f0f5771eb79aeac0fd2755fdb8d80bb7106b9e
* cp-tree.h (cplus_expand_constant): Declare.
* cvt.c (convert_to_pointer): Expand PTRMEM_CSTs when they're
converted from one pointer-to-object type to another.
* expr.c (cplus_expand_constant): Don't make it static.
* typeck.c (build_component_ref): Don't crash when presented with
a component which is a TEMPLATE_DECL.
(build_ptrmemfunc): Tidy.  Clarify comment.  Make sure that even a
cast from a pointer-to-member constant to its own type does not
result in a valid non-type template argument.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@27092 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/cvt.c
gcc/cp/expr.c
gcc/cp/typeck.c
gcc/testsuite/g++.old-deja/g++.pt/crash42.C [new file with mode: 0644]
gcc/testsuite/g++.old-deja/g++.pt/ptrmem6.C