public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/45562] [4.6 Regression] ICE: SIGSEGV in cp_build_unary_op (typeck.c:5083) with -std=gnu++0x -fipa-cp-clone -fcompare-debug
[not found] <bug-45562-4@http.gcc.gnu.org/bugzilla/>
@ 2010-10-11 15:12 ` jamborm at gcc dot gnu.org
2010-10-11 20:23 ` jamborm at gcc dot gnu.org
2010-10-11 20:26 ` jamborm at gcc dot gnu.org
2 siblings, 0 replies; 8+ messages in thread
From: jamborm at gcc dot gnu.org @ 2010-10-11 15:12 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45562
--- Comment #4 from Martin Jambor <jamborm at gcc dot gnu.org> 2010-10-11 15:12:40 UTC ---
A proposed patch submitted to the mailing list:
http://gcc.gnu.org/ml/gcc-patches/2010-10/msg00921.html
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/45562] [4.6 Regression] ICE: SIGSEGV in cp_build_unary_op (typeck.c:5083) with -std=gnu++0x -fipa-cp-clone -fcompare-debug
[not found] <bug-45562-4@http.gcc.gnu.org/bugzilla/>
2010-10-11 15:12 ` [Bug c++/45562] [4.6 Regression] ICE: SIGSEGV in cp_build_unary_op (typeck.c:5083) with -std=gnu++0x -fipa-cp-clone -fcompare-debug jamborm at gcc dot gnu.org
@ 2010-10-11 20:23 ` jamborm at gcc dot gnu.org
2010-10-11 20:26 ` jamborm at gcc dot gnu.org
2 siblings, 0 replies; 8+ messages in thread
From: jamborm at gcc dot gnu.org @ 2010-10-11 20:23 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45562
--- Comment #5 from Martin Jambor <jamborm at gcc dot gnu.org> 2010-10-11 20:23:40 UTC ---
Author: jamborm
Date: Mon Oct 11 20:23:04 2010
New Revision: 165330
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=165330
Log:
2010-10-11 Martin Jambor <mjambor@suse.cz>
PR c++/45562
* cp/cp-tree.h (current_class_ref): Check that cp_function_chain is
non-NULL.
* cp/call.c (build_cxx_call): Likewise.
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/call.c
trunk/gcc/cp/cp-tree.h
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/45562] [4.6 Regression] ICE: SIGSEGV in cp_build_unary_op (typeck.c:5083) with -std=gnu++0x -fipa-cp-clone -fcompare-debug
[not found] <bug-45562-4@http.gcc.gnu.org/bugzilla/>
2010-10-11 15:12 ` [Bug c++/45562] [4.6 Regression] ICE: SIGSEGV in cp_build_unary_op (typeck.c:5083) with -std=gnu++0x -fipa-cp-clone -fcompare-debug jamborm at gcc dot gnu.org
2010-10-11 20:23 ` jamborm at gcc dot gnu.org
@ 2010-10-11 20:26 ` jamborm at gcc dot gnu.org
2 siblings, 0 replies; 8+ messages in thread
From: jamborm at gcc dot gnu.org @ 2010-10-11 20:26 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45562
Martin Jambor <jamborm at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #6 from Martin Jambor <jamborm at gcc dot gnu.org> 2010-10-11 20:25:58 UTC ---
Fixed.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/45562] [4.6 Regression] ICE: SIGSEGV in cp_build_unary_op (typeck.c:5083) with -std=gnu++0x -fipa-cp-clone -fcompare-debug
2010-09-06 19:36 [Bug c++/45562] New: " zsojka at seznam dot cz
` (3 preceding siblings ...)
2010-09-21 14:54 ` hjl dot tools at gmail dot com
@ 2010-09-21 17:08 ` jamborm at gcc dot gnu dot org
4 siblings, 0 replies; 8+ messages in thread
From: jamborm at gcc dot gnu dot org @ 2010-09-21 17:08 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from jamborm at gcc dot gnu dot org 2010-09-21 17:08 -------
This is the full backtrace:
#0 0x081e945d in cp_build_unary_op (code=ADDR_EXPR, xarg=0xb76d0dac,
noconvert=0, complain=3)
at /home/mjambor/gcc/icln/gcc/cp/typeck.c:5091
#1 0x080d10b3 in build_this (obj=0xb76d7898) at
/home/mjambor/gcc/icln/gcc/cp/call.c:2738
#2 0x080dfaf5 in build_new_method_call (instance=0xb76d0dac, fns=0xb76d0dc8,
args=0xbfffe8d0,
conversion_path=0xb776e000, flags=3, fn_p=0x0, complain=0)
at /home/mjambor/gcc/icln/gcc/cp/call.c:6482
#3 0x0812f34c in tsubst_copy_and_build (t=0xb76d1774, args=0xb775de88,
complain=0, in_decl=0x0,
function_p=0 '\000', integral_constant_expression_p=0 '\000')
at /home/mjambor/gcc/icln/gcc/cp/pt.c:12587
#4 0x0813a8b6 in tsubst_expr (t=0xb76d1774, args=<value optimized out>,
complain=<value optimized out>, in_decl=0x0,
integral_constant_expression_p=<value optimized out>) at
/home/mjambor/gcc/icln/gcc/cp/pt.c:12069
#5 0x08132dbc in tsubst (t=0xb7763f60, args=0xb775de88, complain=0,
in_decl=0x0)
at /home/mjambor/gcc/icln/gcc/cp/pt.c:10697
#6 0x081a7e24 in dump_template_bindings (typenames=<value optimized out>,
args=<value optimized out>, parms=<value optimized out>)
at /home/mjambor/gcc/icln/gcc/cp/error.c:315
#7 dump_function_decl (typenames=<value optimized out>, args=<value optimized
out>,
parms=<value optimized out>) at /home/mjambor/gcc/icln/gcc/cp/error.c:1346
#8 0x081a95f8 in decl_as_string (decl=0xb7766a80, flags=4)
at /home/mjambor/gcc/icln/gcc/cp/error.c:2372
#9 0x08233b8b in cxx_printable_name_internal (decl=0xb7766a80, v=0,
translate=152 '\230')
at /home/mjambor/gcc/icln/gcc/cp/tree.c:1445
#10 0x0843aba9 in current_function_name () at
/home/mjambor/gcc/icln/gcc/function.c:5635
#11 0x08668ed0 in dump_enumerated_decls (file=0x8d8c670, flags=1048576)
at /home/mjambor/gcc/icln/gcc/tree-ssa-live.c:1268
#12 0x0860387c in execute_cleanup_cfg_post_optimizing ()
at /home/mjambor/gcc/icln/gcc/tree-optimize.c:214
#13 0x084fe5e9 in execute_one_pass (pass=0x8c42820) at
/home/mjambor/gcc/icln/gcc/passes.c:1573
#14 0x084fe89d in execute_pass_list (pass=0x8c42820) at
/home/mjambor/gcc/icln/gcc/passes.c:1628
#15 0x08603a8a in tree_rest_of_compilation (fndecl=0xb7766a80)
at /home/mjambor/gcc/icln/gcc/tree-optimize.c:452
#16 0x087afdbc in cgraph_expand_function (node=<value optimized out>)
at /home/mjambor/gcc/icln/gcc/cgraphunit.c:1477
#17 0x087b3051 in cgraph_expand_all_functions () at
/home/mjambor/gcc/icln/gcc/cgraphunit.c:1556
#18 cgraph_optimize () at /home/mjambor/gcc/icln/gcc/cgraphunit.c:1812
#19 0x087b368a in cgraph_finalize_compilation_unit () at
/home/mjambor/gcc/icln/gcc/cgraphunit.c:1020
#20 0x0819bebb in cp_write_global_declarations () at
/home/mjambor/gcc/icln/gcc/cp/decl2.c:3928
#21 0x085a2894 in compile_file () at /home/mjambor/gcc/icln/gcc/toplev.c:967
#22 do_compile () at /home/mjambor/gcc/icln/gcc/toplev.c:2394
#23 0x085a3062 in toplev_main (argc=21, argv=0xbfffef64) at
/home/mjambor/gcc/icln/gcc/toplev.c:2435
#24 0x082ca5eb in main (argc=21, argv=0xbfffef64) at
/home/mjambor/gcc/icln/gcc/main.c:36
It seems that some template bindings get built when we try to dump the
current function for the compare-debug dump (required to get the ICE),
which is so late in the compilation process that cp front-end cannot
handle it somehow.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45562
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/45562] [4.6 Regression] ICE: SIGSEGV in cp_build_unary_op (typeck.c:5083) with -std=gnu++0x -fipa-cp-clone -fcompare-debug
2010-09-06 19:36 [Bug c++/45562] New: " zsojka at seznam dot cz
` (2 preceding siblings ...)
2010-09-21 13:36 ` rguenth at gcc dot gnu dot org
@ 2010-09-21 14:54 ` hjl dot tools at gmail dot com
2010-09-21 17:08 ` jamborm at gcc dot gnu dot org
4 siblings, 0 replies; 8+ messages in thread
From: hjl dot tools at gmail dot com @ 2010-09-21 14:54 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from hjl dot tools at gmail dot com 2010-09-21 14:54 -------
It is caused by revision 162911:
http://gcc.gnu.org/ml/gcc-cvs/2010-08/msg00122.html
--
hjl dot tools at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jamborm at gcc dot gnu dot
| |org
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2010-09-21 14:54:00
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45562
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/45562] [4.6 Regression] ICE: SIGSEGV in cp_build_unary_op (typeck.c:5083) with -std=gnu++0x -fipa-cp-clone -fcompare-debug
2010-09-06 19:36 [Bug c++/45562] New: " zsojka at seznam dot cz
2010-09-06 19:38 ` [Bug c++/45562] " zsojka at seznam dot cz
2010-09-07 9:28 ` rguenth at gcc dot gnu dot org
@ 2010-09-21 13:36 ` rguenth at gcc dot gnu dot org
2010-09-21 14:54 ` hjl dot tools at gmail dot com
2010-09-21 17:08 ` jamborm at gcc dot gnu dot org
4 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-09-21 13:36 UTC (permalink / raw)
To: gcc-bugs
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45562
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/45562] [4.6 Regression] ICE: SIGSEGV in cp_build_unary_op (typeck.c:5083) with -std=gnu++0x -fipa-cp-clone -fcompare-debug
2010-09-06 19:36 [Bug c++/45562] New: " zsojka at seznam dot cz
2010-09-06 19:38 ` [Bug c++/45562] " zsojka at seznam dot cz
@ 2010-09-07 9:28 ` rguenth at gcc dot gnu dot org
2010-09-21 13:36 ` rguenth at gcc dot gnu dot org
` (2 subsequent siblings)
4 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-09-07 9:28 UTC (permalink / raw)
To: gcc-bugs
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.6.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45562
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/45562] [4.6 Regression] ICE: SIGSEGV in cp_build_unary_op (typeck.c:5083) with -std=gnu++0x -fipa-cp-clone -fcompare-debug
2010-09-06 19:36 [Bug c++/45562] New: " zsojka at seznam dot cz
@ 2010-09-06 19:38 ` zsojka at seznam dot cz
2010-09-07 9:28 ` rguenth at gcc dot gnu dot org
` (3 subsequent siblings)
4 siblings, 0 replies; 8+ messages in thread
From: zsojka at seznam dot cz @ 2010-09-06 19:38 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from zsojka at seznam dot cz 2010-09-06 19:38 -------
Created an attachment (id=21715)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21715&action=view)
reduced testcase (from
libstdc++-v3/testsuite/21_strings/basic_string/range_access.cc)
$ gcc -std=gnu++0x -O -fno-inline -fipa-cp -fipa-cp-clone -fcompare-debug
pr45562.C
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45562
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2010-10-11 20:26 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-45562-4@http.gcc.gnu.org/bugzilla/>
2010-10-11 15:12 ` [Bug c++/45562] [4.6 Regression] ICE: SIGSEGV in cp_build_unary_op (typeck.c:5083) with -std=gnu++0x -fipa-cp-clone -fcompare-debug jamborm at gcc dot gnu.org
2010-10-11 20:23 ` jamborm at gcc dot gnu.org
2010-10-11 20:26 ` jamborm at gcc dot gnu.org
2010-09-06 19:36 [Bug c++/45562] New: " zsojka at seznam dot cz
2010-09-06 19:38 ` [Bug c++/45562] " zsojka at seznam dot cz
2010-09-07 9:28 ` rguenth at gcc dot gnu dot org
2010-09-21 13:36 ` rguenth at gcc dot gnu dot org
2010-09-21 14:54 ` hjl dot tools at gmail dot com
2010-09-21 17:08 ` jamborm at gcc dot gnu dot org
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).