[Bug c++/37650] [4.2/4.3/4.4 regression] ICE with broken default template parameter

paolo at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Tue Oct 14 17:54:00 GMT 2008



------- Comment #3 from paolo at gcc dot gnu dot org  2008-10-14 17:53 -------
Subject: Bug 37650

Author: paolo
Date: Tue Oct 14 17:51:55 2008
New Revision: 141115

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=141115
Log:
/cp
2008-10-14  Paolo Carlini  <paolo.carlini@oracle.com>

        PR c++/37650
        * pt.c (push_template_decl_real): Check that current_template_parms
        is not null.
        (process_partial_specialization): Assert current_template_parms not
        null.

/testsuite
2008-10-14  Paolo Carlini  <paolo.carlini@oracle.com>

        PR c++/37650
        * g++.dg/template/crash83.C: New.

Added:
    trunk/gcc/testsuite/g++.dg/template/crash83.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/pt.c
    trunk/gcc/testsuite/ChangeLog


-- 


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



More information about the Gcc-bugs mailing list