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++/44040] New: [4.5 regression] ICE: cc1plus segmentation fault


seen with 4.5 20100508:

g++ -c Abs.ii

In file included from
/scratch/packages/tmp/m/freemat-4.0/libs/libCore/Abs.cpp:20:0:
/scratch/packages/tmp/m/freemat-4.0/libs/libFreeMat/Operators.hpp: In function
'Array DotOp(const Array&, const Array&, DataC
lass)':
/scratch/packages/tmp/m/freemat-4.0/libs/libFreeMat/Operators.hpp:158:49:
error: cannot call constructor 'Array::Array' direc
tly
/scratch/packages/tmp/m/freemat-4.0/libs/libFreeMat/Operators.hpp:158:49:
error:   for a function-style cast, remove the redu
ndant '::Array'
/scratch/packages/tmp/m/freemat-4.0/libs/libFreeMat/Operators.hpp:166:49:
error: cannot call constructor 'Array::Array' direc
tly
/scratch/packages/tmp/m/freemat-4.0/libs/libFreeMat/Operators.hpp:166:49:
error:   for a function-style cast, remove the redu
ndant '::Array'
[...]

Program received signal SIGSEGV, Segmentation fault.
tsubst_baselink (baselink=0x0, object_type=0x0, args=0x7ffff2d01030,
complain=3, in_decl=0x7ffff3051730)
    at ../../src/gcc/cp/pt.c:10682
10682       if (BASELINK_P (baselink))
(gdb) bt
#0  tsubst_baselink (baselink=0x0, object_type=0x0, args=0x7ffff2d01030,
complain=3,
    in_decl=0x7ffff3051730) at ../../src/gcc/cp/pt.c:10682
#1  0x0000000000729879 in tsubst_copy_and_build (t=0x7ffff30583c0,
args=0x7ffff2d01030, complain=3,
    in_decl=0x7ffff3051730, function_p=1 '\001',
integral_constant_expression_p=0 '\000')
    at ../../src/gcc/cp/pt.c:12853
#2  0x0000000000728148 in tsubst_copy_and_build (t=0x7ffff3247af8,
args=0x7ffff2d01030, complain=3,
    in_decl=0x7ffff3051730, function_p=0 '\000',
integral_constant_expression_p=0 '\000')
    at ../../src/gcc/cp/pt.c:12354
#3  0x0000000000728d38 in tsubst_copy_and_build (t=0x7ffff3057900,
args=0x7ffff2d01030, complain=3,
    in_decl=0x7ffff3051730, function_p=<value optimized out>,
integral_constant_expression_p=0 '\000')
    at ../../src/gcc/cp/pt.c:12234
#4  0x000000000070e7bf in tsubst_expr (t=0x7ffff3057900, args=0x7ffff2d01030,
complain=3,
    in_decl=0x7ffff3051730, integral_constant_expression_p=0 '\000') at
../../src/gcc/cp/pt.c:11938
#5  0x000000000070f2ec in tsubst_expr (t=0x7ffff3058450, args=0x7ffff2d01030,
complain=3,
    in_decl=0x7ffff3051730, integral_constant_expression_p=0 '\000') at
../../src/gcc/cp/pt.c:11537
#6  0x000000000070f1ae in tsubst_expr (t=0x7ffff3057800, args=0x7ffff2d01030,
complain=3,
    in_decl=0x7ffff3051730, integral_constant_expression_p=0 '\000') at
../../src/gcc/cp/pt.c:11679
#7  0x000000000070f40a in tsubst_expr (t=0x7ffff30576c0, args=0x7ffff2d01030,
complain=3,
    in_decl=0x7ffff3051730, integral_constant_expression_p=0 '\000') at
../../src/gcc/cp/pt.c:11659
#8  0x000000000070f1ae in tsubst_expr (t=0x7ffff3057680, args=0x7ffff2d01030,
complain=3,
    in_decl=0x7ffff3051730, integral_constant_expression_p=0 '\000') at
../../src/gcc/cp/pt.c:11679
#9  0x000000000070f40a in tsubst_expr (t=0x7ffff3057540, args=0x7ffff2d01030,
complain=3,
    in_decl=0x7ffff3051730, integral_constant_expression_p=0 '\000') at
../../src/gcc/cp/pt.c:11659
#10 0x000000000070e844 in tsubst_expr (t=<value optimized out>,
args=0x7ffff2d01030, complain=3,
    in_decl=0x7ffff3051730, integral_constant_expression_p=0 '\000') at
../../src/gcc/cp/pt.c:11523
#11 0x000000000070f1ae in tsubst_expr (t=0x7ffff3050980, args=0x7ffff2d01030,
complain=3,
    in_decl=0x7ffff3051730, integral_constant_expression_p=0 '\000') at
../../src/gcc/cp/pt.c:11679
#12 0x0000000000720bed in instantiate_decl (d=<value optimized out>,
defer_ok=1,
    expl_inst_class_mem_p=0 '\000') at ../../src/gcc/cp/pt.c:16862
#13 0x000000000074817c in instantiate_pending_templates (retries=<value
optimized out>)
    at ../../src/gcc/cp/pt.c:16959
#14 0x0000000000777438 in cp_write_global_declarations () at
../../src/gcc/cp/decl2.c:3546
#15 0x0000000000a5e1a4 in compile_file (argc=13, argv=0x7fffffffe608) at
../../src/gcc/toplev.c:1065
#16 do_compile (argc=13, argv=0x7fffffffe608) at ../../src/gcc/toplev.c:2417
#17 toplev_main (argc=13, argv=0x7fffffffe608) at ../../src/gcc/toplev.c:2459
#18 0x00007ffff6179abd in __libc_start_main () from /lib/libc.so.6
#19 0x00000000006a830d in _start ()


-- 
           Summary: [4.5 regression] ICE: cc1plus segmentation fault
           Product: gcc
           Version: 4.5.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: doko at ubuntu dot com


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


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