This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/42697] ice-on-legal-code: template class template function local objects



------- Comment #5 from dodji at gcc dot gnu dot org  2010-01-17 10:24 -------
Subject: Bug 42697

Author: dodji
Date: Sun Jan 17 10:24:16 2010
New Revision: 155975

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=155975
Log:
Fix PR c++/42697

gcc/cp/ChangeLog:
        PR c++/42697
        *pt.c (tsubst_decl): Get the arguments of a specialization from
        the specialization template, not from the most general template.

gcc/testsuite/ChangeLog:
        PR c++/42697
        * g++.dg/template/crash94.C: New test.

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


-- 


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]