OSDN Git Service

* cp-tree.h (complete_type_or_else): Declare.
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 13 Jun 1998 23:45:18 +0000 (23:45 +0000)
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 13 Jun 1998 23:45:18 +0000 (23:45 +0000)
commitb3a558fd95a7a61787c731bc017f5b99c4bd1ab5
tree6c025d8e59042c495188e1596d323a743397764a
parenta734686b8c73645edf3ee10a44b2f18a80c34fd3
* cp-tree.h (complete_type_or_else): Declare.
* init.c (build_new_1, build_delete): Use it.
* typeck.c (require_complete_type): Use complete_type, rather than
expanding it inline.
(complete_type_or_else): New function.
(build_component_ref): Use it.
(pointer_int_sum): Make sure the type pointed to is complete.
(pointer_diff): Likewise.

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