[Bug c++/29732] [4.0/4.1/4.2/4.3 regression] ICE on invalid friend declaration

mmitchel at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Fri Dec 8 06:27:00 GMT 2006



------- Comment #2 from mmitchel at gcc dot gnu dot org  2006-12-08 06:27 -------
Subject: Bug 29732

Author: mmitchel
Date: Fri Dec  8 06:27:22 2006
New Revision: 119649

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=119649
Log:
        PR c++/29732
        * cp-tree.h (DECL_USE_TEMPLATE): Mention partial specializations.
        (explicit_class_specialization_p): Declare.
        * pt.c (explicit_class_specialization_p): New function.
        * parser.c (cp_parser_init_declarator): Check correct number of
        template parameters for in-class function definitions.
        (cp_parser_check_declrator_template_parameters): Stop looking for
        template classes when we find an explicit specialization.
        PR c++/29732
        * g++.dg/template/crash65.C: New test.
        * g++.dg/template/spec16.C: Tweak error markers.

Added:
    trunk/gcc/testsuite/g++.dg/template/crash65.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/cp-tree.h
    trunk/gcc/cp/parser.c
    trunk/gcc/cp/pt.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/g++.dg/template/spec16.C


-- 


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



More information about the Gcc-bugs mailing list