------- Comment #4 from lmillward at gcc dot gnu dot org  2006-07-28 17:01 
-------
Subject: Bug 27668

Author: lmillward
Date: Fri Jul 28 17:01:19 2006
New Revision: 115800

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=115800
Log:
        PR c++/27668
        PR c++/27962
        * pt.c (process_template_parm) Store invalid template
        parameters as error_mark_node in the paramater list.
        (push_inline_template_parms_recursive): Handle invalid
        template parameters.
        (comp_template_parms): Likewise.
        (check_default_tmpl_arg): Likewise.
        (coerce_template_template_parms): Likewise.
        (mangle_class_name_for_template): Likewise.
        (tsubst_template_parms): Likewise.
        * error.c (dump_template_argument_list): Likewise.

        * g++.dg/template/crash55.C: New test.
        * g++.dg/template/nontype16.C: New test.
        * g++.dg/template/void2.C: Adjust error markers.
        * g++.dg/template/nontype5.C: Adjust error markers.


Added:
    trunk/gcc/testsuite/g++.dg/template/crash55.C
    trunk/gcc/testsuite/g++.dg/template/nontype16.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/error.c
    trunk/gcc/cp/pt.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/g++.dg/template/nontype5.C
    trunk/gcc/testsuite/g++.dg/template/void2.C


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27668

Reply via email to