typeck2.c (add_exception_specifier): Only pedwarn for an incomplete type.
authorJason Merrill <jason@redhat.com>
Wed, 4 Sep 2002 23:24:00 +0000 (19:24 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 4 Sep 2002 23:24:00 +0000 (19:24 -0400)
commit5aa3396cd44c61d134aab3b123b1f2a73aa9d1a9
tree194dd3c5c6587e67721075491f09bfdb468a1934
parent65e32b88a6a9b4b8169e4d8fde0bc28934c4667e
typeck2.c (add_exception_specifier): Only pedwarn for an incomplete type.

        * typeck2.c (add_exception_specifier): Only pedwarn for an
        incomplete type.
        (require_complete_eh_spec_types): New fn.
        (cxx_incomplete_type_diagnostic): Also support pedwarning.
        * typeck.c (complete_type_or_diagnostic): Likewise.
        * call.c (build_call): Call require_complete_eh_spec_types.
        * rtti.c (get_pseudo_ti_desc): Give an error rather than aborting
        on an incomplete type.

From-SVN: r56822
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/rtti.c
gcc/cp/typeck.c
gcc/cp/typeck2.c
gcc/testsuite/g++.dg/eh/spec5.C [new file with mode: 0644]
gcc/testsuite/g++.dg/eh/spec6.C [new file with mode: 0644]