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++/34397] [4.2/4.3/4.4 regression] ICE on invalid default template parameter



------- Comment #26 from paolo at gcc dot gnu dot org  2009-02-10 21:47 -------
Subject: Bug 34397

Author: paolo
Date: Tue Feb 10 21:47:12 2009
New Revision: 144083

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

        PR c++/34397
        * typeck.c (build_x_array_ref): New.
        * cp-tree.h: Declare it.
        * pt.c (tsubst_copy_and_build): Use it for case ARRAY_REF.

/testsuite
2009-02-10  Paolo Carlini  <paolo.carlini@oracle.com>

        PR c++/34397
        * g++.dg/template/crash88.C: New.
        * g++.dg/template/crash89.C: Likewise.

Added:
    trunk/gcc/testsuite/g++.dg/template/crash88.C
    trunk/gcc/testsuite/g++.dg/template/crash89.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/cp-tree.h
    trunk/gcc/cp/pt.c
    trunk/gcc/cp/typeck.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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