public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "doko at ubuntu dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/44040]  New: [4.5 regression] ICE: cc1plus segmentation fault
Date: Sat, 08 May 2010 14:32:00 -0000	[thread overview]
Message-ID: <bug-44040-11764@http.gcc.gnu.org/bugzilla/> (raw)

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


             reply	other threads:[~2010-05-08 14:32 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-08 14:32 doko at ubuntu dot com [this message]
2010-05-08 14:33 ` [Bug c++/44040] " doko at ubuntu dot com
2010-05-08 16:40 ` [Bug c++/44040] [4.5 Regression] " rguenth at gcc dot gnu dot org
2010-05-19 12:58 ` [Bug c++/44040] [4.5/4.6 " rguenth at gcc dot gnu dot org
2010-06-27  8:27 ` rguenth at gcc dot gnu dot org
2010-06-28  0:54 ` hjl dot tools at gmail dot com
2010-06-28 16:00 ` paolo dot carlini at oracle dot com
2010-06-30 18:28 ` jason at gcc dot gnu dot org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-44040-11764@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).