OSDN Git Service

* cp-tree.h (complete_type_or_diagnostic): Changed prototype,
authoraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 19 May 2002 05:15:12 +0000 (05:15 +0000)
committeraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 19 May 2002 05:15:12 +0000 (05:15 +0000)
commite097fb33e6f49505f2296e69f741530dfd964758
treeffcdb6c8e505f82dab06162c541fef073b362b79
parenta48368df08d25ea44ca9be11454cd6436e922ed0
* cp-tree.h (complete_type_or_diagnostic): Changed prototype,
renamed from...
(complete_type_or_else): ... this.  Redefined as macro.
(cxx_incomplete_type_diagnostic): Declare.
(cxx_incomplete_type_error): Define as macro.
* init.c (build_delete): Warn about incomplete types other than
void, and use the built-in operator delete for them.
* typeck.c (complete_type_or_diagnostic): Renamed from
complete_type_or_else.  Added warn_only argument, passed to...
* typeck2.c (cxx_incomplete_type_diagnostic): ... this.  Print
warnings or errors depending on new warn_only argument.  Renamed
from...
(cxx_incomplete_type_error): ... this.  New implementation in
terms of cxx_incomplete_type_diagnostic.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@53605 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/init.c
gcc/cp/typeck.c
gcc/cp/typeck2.c