[Bug c++/24791] ICE on invalid instantiation of template's static member
------- Comment #12 from jason at gcc dot gnu dot org 2007-10-26 19:54 -------
Subject: Bug 24791
Author: jason
Date: Fri Oct 26 19:54:10 2007
New Revision: 129660
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=129660
Log:
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.
Added:
trunk/gcc/testsuite/g++.dg/template/error33.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/cp-tree.h
trunk/gcc/cp/pt.c
trunk/gcc/testsuite/g++.old-deja/g++.pt/crash11.C
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24791
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
Reply to: