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++/15143] using some template with 0 leads to segmentation fault in g++


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-07-26 06:30 -------

For me it seg faults with the following backtrace (before really eating up all the memory):
) at /home/gates/pinskia/src/gnu/gcc/src/gcc/cp/call.c:1210
#7  0x080501dd in implicit_conversion (to=0x4010ee0c, from=0x40050488, expr=0x40103ca8, 
flags=3)
    at /home/gates/pinskia/src/gnu/gcc/src/gcc/cp/call.c:1237
#8  0x08050862 in add_function_candidate (candidates=0x9ee42a68, fn=0x401120e8, 
ctype=0x4010b740, arglist=0x62d02420, access_path=0x14,
    conversion_path=0x14, flags=3) at /home/gates/pinskia/src/gnu/gcc/src/gcc/cp/call.c:1396
#9  0x08053912 in build_new_method_call (instance=0x62d01820, fns=0x62d01840, 
args=0x62d023f0, conversion_path=0x40106680, flags=3)
    at /home/gates/pinskia/src/gnu/gcc/src/gcc/cp/call.c:5288
#10 0x080541b4 in build_special_member_call (instance=0x62d01820, name=0x40057440, 
args=0x62d023f0, binfo=0x40106680, flags=20)
    at /home/gates/pinskia/src/gnu/gcc/src/gcc/cp/call.c:5095
#11 0x08109a45 in ocp_convert (type=0x4010b740, expr=0x40103ca8, convtype=Variable 
"convtype" is not available.
) at /home/gates/pinskia/src/gnu/gcc/src/gcc/cp/cvt.c:748
#12 0x081007ce in convert_for_initialization (exp=0x0, type=0x4010b740, rhs=0x40103ca8, 
flags=20, errtype=0x854eece "default argument",
    fndecl=0x4010e414, parmnum=1) at /home/gates/pinskia/src/gnu/gcc/src/gcc/cp/typeck.c:5800
#13 0x0804ce91 in convert_default_arg (type=0x4010b740, arg=0x40103ca8, fn=0x4010e414, 
parmnum=1)
    at /home/gates/pinskia/src/gnu/gcc/src/gcc/cp/call.c:4490
#14 0x08055091 in build_over_call (cand=0x2699ea68, flags=3) at /home/gates/pinskia/src/gnu/
gcc/src/gcc/cp/call.c:4724
#15 0x08053bb1 in build_new_method_call (instance=0x62d017a0, fns=0x62d017c0, 
args=0x62d022d0, conversion_path=0x40106680, flags=3)
    at /home/gates/pinskia/src/gnu/gcc/src/gcc/cp/call.c:5357
#16 0x080541b4 in build_special_member_call (instance=0x62d017a0, name=0x40057440, 
args=0x62d022d0, binfo=0x40106680, flags=20)
    at /home/gates/pinskia/src/gnu/gcc/src/gcc/cp/call.c:5095
#17 0x08109a45 in ocp_convert (type=0x4010b740, expr=0x40103ca8, convtype=Variable 
"convtype" is not available.
) at /home/gates/pinskia/src/gnu/gcc/src/gcc/cp/cvt.c:748
#18 0x081007ce in convert_for_initialization (exp=0x0, type=0x4010b740, rhs=0x40103ca8, 
flags=20, errtype=0x854eece "default argument",
    fndecl=0x4010e414, parmnum=1) at /home/gates/pinskia/src/gnu/gcc/src/gcc/cp/typeck.c:5800
#19 0x0804ce91 in convert_default_arg (type=0x4010b740, arg=0x40103ca8, fn=0x4010e414, 
parmnum=1)
    at /home/gates/pinskia/src/gnu/gcc/src/gcc/cp/call.c:4490
#20 0x08055091 in build_over_call (cand=0x2699e8a0, flags=3) at /home/gates/pinskia/src/gnu/
gcc/src/gcc/cp/call.c:4724
#21 0x08053bb1 in build_new_method_call (instance=0x62d01720, fns=0x62d01740, 
args=0x62d021b0, conversion_path=0x40106680, flags=3)
    at /home/gates/pinskia/src/gnu/gcc/src/gcc/cp/call.c:5357
#22 0x080541b4 in build_special_member_call (instance=0x62d01720, name=0x40057440, 
args=0x62d021b0, binfo=0x40106680, flags=20)
    at /home/gates/pinskia/src/gnu/gcc/src/gcc/cp/call.c:5095
#23 0x08109a45 in ocp_convert (type=0x4010b740, expr=0x40103ca8, convtype=Variable 
"convtype" is not available.
) at /home/gates/pinskia/src/gnu/gcc/src/gcc/cp/cvt.c:748
#24 0x081007ce in convert_for_initialization (exp=0x0, type=0x4010b740, rhs=0x40103ca8, 
flags=20, errtype=0x854eece "default argument",
    fndecl=0x4010e414, parmnum=1) at /home/gates/pinskia/src/gnu/gcc/src/gcc/cp/typeck.c:5800
#25 0x0804ce91 in convert_default_arg (type=0x4010b740, arg=0x40103ca8, fn=0x4010e414, 
parmnum=1)
    at /home/gates/pinskia/src/gnu/gcc/src/gcc/cp/call.c:4490
#26 0x08055091 in build_over_call (cand=0x2699e6d8, flags=3) at /home/gates/pinskia/src/gnu/
gcc/src/gcc/cp/call.c:4724
#27 0x08053bb1 in build_new_method_call (instance=0x62d016a0, fns=0x62d016c0, 
args=0x62d02090, conversion_path=0x40106680, flags=3)
    at /home/gates/pinskia/src/gnu/gcc/src/gcc/cp/call.c:5357
#28 0x080541b4 in build_special_member_call (instance=0x62d016a0, name=0x40057440, 
args=0x62d02090, binfo=0x40106680, flags=20)
    at /home/gates/pinskia/src/gnu/gcc/src/gcc/cp/call.c:5095
#29 0x08109a45 in ocp_convert (type=0x4010b740, expr=0x40103ca8, convtype=Variable 
"convtype" is not available.
) at /home/gates/pinskia/src/gnu/gcc/src/gcc/cp/cvt.c:748

        List( T info, List next=0 ) {} // this is causing the issue

This is a dup of bug 15528.

*** This bug has been marked as a duplicate of 15528 ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
           Keywords|                            |ice-on-invalid-code
         Resolution|                            |DUPLICATE


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


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