PR c++/24791
commitcd4b38bb905497ed6ec4a7eecbc8b2fcbf218b20
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 26 Oct 2007 19:54:10 +0000 (26 19:54 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 26 Oct 2007 19:54:10 +0000 (26 19:54 +0000)
treeb60524076cf0b62e70c6417f3dd6b09eb6c76300
parent7f0d3ba1556429f27fcdaee60c44f1b4a713c7f9
    PR c++/24791
        * pt.c (get_template_info): New fn.
        (template_class_depth): Use it.
        (push_template_decl_real): Check that the template args of the
        definition match the args of the previous declaration.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@129660 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/pt.c
gcc/testsuite/g++.dg/template/error33.C [new file with mode: 0644]
gcc/testsuite/g++.old-deja/g++.pt/crash11.C