This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [C++ PATCH] [PR17447] Check incomplete types of parameters intemplates - take 2


Giovanni Bajo wrote:
Hello,

this is take two of this patch:
http://gcc.gnu.org/ml/gcc-patches/2004-09/msg01262.html

The patch is the same, the only difference is the use of dependent_type_p in
place of uses_template_parms, as suggested by Gaby. It looks like I was
confused, and using dependent_type_p is perfectly valid here (I thought I had
tried, but...). Patch tested on i686-pc-linux-gnu, OK for mainline?

Giovanni Bajo


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

testsuite/
        * g++.dg/template/incomplete1.C: New test.
ok, thanks

nathan


-- Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery LLC nathan@codesourcery.com :: http://www.planetfall.pwp.blueyonder.co.uk



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]