decl.c (start_preparsed_function): Call check_function_type even in templates.
authorGiovanni Bajo <giovannibajo@gcc.gnu.org>
Wed, 17 Nov 2004 00:17:00 +0000 (00:17 +0000)
committerGiovanni Bajo <giovannibajo@gcc.gnu.org>
Wed, 17 Nov 2004 00:17:00 +0000 (00:17 +0000)
commitc938791573a5c7985b6df49913f88e5e29a35aaa
tree26c508dbd04e16713c7ed6e66e122faa7058dd00
parentf4e649d2d2f713e8179e331ecd4bd88f11eb3c61
decl.c (start_preparsed_function): Call check_function_type even in templates.

* decl.c (start_preparsed_function): Call check_function_type even
in templates.
(require_complete_types_for_parms): Skip dependent types.
(check_function_type): Likewise.

* g++.dg/template/incomplete1.C: New test.

From-SVN: r90779
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/incomplete1.C [new file with mode: 0644]