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

             Bug #: 54844
           Summary: ice tsubst_copy, at cp/pt.c:12352
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: dcb...@hotmail.com


Created attachment 28379
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28379
gzipped C++ source code

The original source code I provided for bug #46240 seems to 
now cause an ice.

oct-norm.cc: In instantiation of ‘R vector_norm(const MArray<T>&, R) [with T =
double; R = double]’:
oct-norm.cc:521:75:   required from here
oct-norm.cc:309:234: internal compiler error: in tsubst_copy, at cp/pt.c:12352
0x58361a tsubst_copy
    ../../src/trunk/gcc/cp/pt.c:12352
0x5745c2 tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool,
bool)
    ../../src/trunk/gcc/cp/pt.c:13479
0x57321c tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool,
bool)
    ../../src/trunk/gcc/cp/pt.c:13504
0x574139 tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool,
bool)
    ../../src/trunk/gcc/cp/pt.c:13459
0x5736c9 tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool,
bool)
    ../../src/trunk/gcc/cp/pt.c:13863
0x57aa9a tsubst_expr
    ../../src/trunk/gcc/cp/pt.c:13159
0x57b61a tsubst_expr
    ../../src/trunk/gcc/cp/pt.c:12792
0x57b6ce tsubst_expr
    ../../src/trunk/gcc/cp/pt.c:12814
0x57c56d tsubst_expr
    ../../src/trunk/gcc/cp/pt.c:12800
0x57b6ce tsubst_expr
    ../../src/trunk/gcc/cp/pt.c:12814
0x57c56d tsubst_expr
    ../../src/trunk/gcc/cp/pt.c:12800
0x57b753 tsubst_expr
    ../../src/trunk/gcc/cp/pt.c:12630
0x57b6ce tsubst_expr
    ../../src/trunk/gcc/cp/pt.c:12814
0x579966 instantiate_decl(tree_node*, int, bool)
    ../../src/trunk/gcc/cp/pt.c:18635
0x5b3e33 instantiate_pending_templates(int)
    ../../src/trunk/gcc/cp/pt.c:18734
0x5ee1ae cp_write_global_declarations()
    ../../src/trunk/gcc/cp/decl2.c:3742
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.

No special compiler flags required.

This code used to compile with trunk dated 2012 Oct 03, so 
a recent change seems to be causing the problem.

Reply via email to