]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/cp/init.cc
cp-tree.h (complete_type_or_diagnostic): Changed prototype, renamed from...
authorAlexandre Oliva <aoliva@redhat.com>
Sun, 19 May 2002 05:15:12 +0000 (05:15 +0000)
committerAlexandre Oliva <aoliva@gcc.gnu.org>
Sun, 19 May 2002 05:15:12 +0000 (05:15 +0000)
commit23b4deba7bcabbbcb607095eda02a705a510830b
treeffcdb6c8e505f82dab06162c541fef073b362b79
parent410b770f6366152c34efd7629258cb7f5598a20b
cp-tree.h (complete_type_or_diagnostic): Changed prototype, renamed from...

* 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.

From-SVN: r53605
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/init.c
gcc/cp/typeck.c
gcc/cp/typeck2.c