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

mmitchel at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Tue Dec 12 01:47:00 GMT 2006



------- Comment #5 from mmitchel at gcc dot gnu dot org  2006-12-12 01:47 -------
Subject: Bug 29732

Author: mmitchel
Date: Tue Dec 12 01:46:57 2006
New Revision: 119759

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=119759
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_declarator_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:
    branches/gcc-4_2-branch/gcc/testsuite/g++.dg/template/crash65.C
Modified:
    branches/gcc-4_2-branch/gcc/cp/ChangeLog
    branches/gcc-4_2-branch/gcc/cp/cp-tree.h
    branches/gcc-4_2-branch/gcc/cp/parser.c
    branches/gcc-4_2-branch/gcc/cp/pt.c
    branches/gcc-4_2-branch/gcc/testsuite/ChangeLog
    branches/gcc-4_2-branch/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