public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/19222] New: [4.0 Regression] ICE: in fold_convert, at fold-const.c:1980
@ 2005-01-01 23:23 danglin at gcc dot gnu dot org
2005-01-01 23:29 ` [Bug c++/19222] " pinskia at gcc dot gnu dot org
` (8 more replies)
0 siblings, 9 replies; 10+ messages in thread
From: danglin at gcc dot gnu dot org @ 2005-01-01 23:23 UTC (permalink / raw)
To: gcc-bugs
And now the next problem.
/home/dave/gnu/gcc-4.0/objdir/gcc/xgcc -shared-libgcc -B/home/dave/gnu/gcc-4.0/o
bjdir/gcc/ -nostdinc++ -L/home/dave/gnu/gcc-4.0/objdir/vax-ultrix/libstdc++-v3/s
rc -L/home/dave/gnu/gcc-4.0/objdir/vax-ultrix/libstdc++-v3/src/.libs -B/home/dav
e/opt/gnu/vax-ultrix/bin/ -B/home/dave/opt/gnu/vax-ultrix/lib/ -isystem /home/da
ve/opt/gnu/vax-ultrix/include -isystem /home/dave/opt/gnu/vax-ultrix/sys-include
-I/home/dave/gnu/gcc-4.0/objdir/vax-ultrix/libstdc++-v3/include/vax-ultrix -I/h
ome/dave/gnu/gcc-4.0/objdir/vax-ultrix/libstdc++-v3/include -I/home/dave/gnu/gcc
-4.0/gcc/libstdc++-v3/libsupc++ -O2 -g -O1 -g -O2 -fno-implicit-templates -Wall
-Wextra -Wwrite-strings -Wcast-qual -fdiagnostics-show-location=once -c ../../..
/../gcc/libstdc++-v3/src/complex_io.cc -o complex_io.o
/home/dave/gnu/gcc-4.0/objdir/vax-ultrix/libstdc++-v3/include/complex: In functi
on 'std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_Cha
rT, _Traits>&, const std::complex<_Tp>&) [with _Tp = long double, _CharT = char,
_Traits = std::char_traits<char>]':
/home/dave/gnu/gcc-4.0/objdir/vax-ultrix/libstdc++-v3/include/complex:522: inter
nal compiler error: in fold_convert, at fold-const.c:1980
Breakpoint 1, fold_convert (type=0x40afc870, arg=0x40f35510)
at ../../gcc/gcc/fold-const.c:1980
1980 gcc_unreachable ();
(gdb) p debug_tree (type)
<record_type 0x40afc870 locale addressable needs-constructing type_1 type_2
type_4 type_5 type_6 BLK
size <integer_cst 0x401482e8 type <integer_type 0x40151144 bit_size_type>
constant invariant 32>
unit size <integer_cst 0x40148078 type <integer_type 0x401510d8 unsigned int>
constant invariant 4>
align 32 symtab 380 alias set 15
fields <var_decl 0x40411ca8 none
type <integer_type 0x40a4cd14 int readonly type_6 SI size <integer_cst
0x401482e8 32> unit size <integer_cst 0x40148078 4>
align 32 symtab 230 alias set -1 precision 32 min <integer_cst
0x401482a0 -2147483648> max <integer_cst 0x401482b8 2147483647>
pointer_to_this <pointer_type 0x40478948> reference_to_this <
reference_type 0x40af7000>>
readonly public static tree_1 tree_2 in_system_header external nonlocal
decl_3 decl_5 decl_6 SI file /home/dave/gnu/gcc-4.0/objdir/vax-ultrix/libstdc++-
v3/include/bits/locale_classes.h line 105 size <integer_cst 0x401482e8 32> unit
size <integer_cst 0x40148078 4>
align 32 context <record_type 0x40afc870 locale> initial <integer_cst
0x401489f0 0>
chain <var_decl 0x40411d14 ctype type <integer_type 0x40a4cd14 int>
readonly used public static tree_1 tree_2 in_system_header external
nonlocal decl_3 decl_5 decl_6 SI file /home/dave/gnu/gcc-4.0/objdir/vax-ultrix/
libstdc++-v3/include/bits/locale_classes.h line 106 size <integer_cst 0x401482e8
32> unit size <integer_cst 0x40148078 4>
align 32 context <record_type 0x40afc870 locale> initial <integer_cst
0x40148a08 1>
chain <var_decl 0x40411d80 numeric>>> context <namespace_decl
0x401518dc std>
needs-constructor needs-destructor ~X() X() X(constX&) this=(X&) n_parents=0
use_template=0 interface-unknown
pointer_to_this <pointer_type 0x404120d8> reference_to_this <reference_type
0x4029da20> chain <type_decl 0x40afc948 locale>>
$1 = void
(gdb) p debug_tree (arg)
<var_decl 0x40f35510
type <reference_type 0x4029da20
type <record_type 0x40afc870 locale addressable needs-constructing type_1
type_2 type_4 type_5 type_6 BLK
size <integer_cst 0x401482e8 constant invariant 32>
unit size <integer_cst 0x40148078 constant invariant 4>
align 32 symtab 380 alias set 15 fields <var_decl 0x40411ca8 none>
context <namespace_decl 0x401518dc std>
needs-constructor needs-destructor ~X() X() X(constX&) this=(X&)
n_parents=0 use_template=0 interface-unknown
pointer_to_this <pointer_type 0x404120d8> reference_to_this <
reference_type 0x4029da20> chain <type_decl 0x40afc948 locale>>
unsigned SI size <integer_cst 0x401482e8 32> unit size <integer_cst
0x40148078 4>
align 32 symtab 0 alias set -1>
used unsigned ignored SI file /home/dave/gnu/gcc-4.0/objdir/vax-ultrix/
libstdc++-v3/include/complex line 522 size <integer_cst 0x401482e8 32> unit size
<integer_cst 0x40148078 4>
align 32 context <function_decl 0x40e238dc operator<<> abstract_origin <
result_decl 0x40298a20>>
$2 = void
(gdb) bt
#0 fold_convert (type=0x40afc870, arg=0x40f35510)
at ../../gcc/gcc/fold-const.c:1980
#1 0x08162aa1 in declare_return_variable (id=0xbfffef90,
return_slot_addr=0x0, modify_dest=0x40e5d57c, use_p=0xbfffed9c)
at ../../gcc/gcc/tree-inline.c:919
#2 0x081639a8 in expand_call_inline (tp=0x40e5e23c, walk_subtrees=0xbfffeddc,
data=0xbfffef90) at ../../gcc/gcc/tree-inline.c:1587
#3 0x081641bb in expand_calls_inline (stmt_p=0x40e4c788, id=0xbfffef90)
at ../../gcc/gcc/tree-inline.c:1742
#4 0x08163cf2 in expand_calls_inline (stmt_p=0x40e5e0f4, id=0xbfffef90)
at tree-iterator.h:86
#5 0x08163f8f in expand_calls_inline (stmt_p=0x40e4c644, id=0xbfffef90)
at ../../gcc/gcc/tree-inline.c:1708
#6 0x08163cf2 in expand_calls_inline (stmt_p=0x40e5c728, id=0xbfffef90)
at tree-iterator.h:86
#7 0x08163ec0 in expand_calls_inline (stmt_p=0x40e4c908, id=0xbfffef90)
at ../../gcc/gcc/tree-inline.c:1699
#8 0x08163cf2 in expand_calls_inline (stmt_p=0x40e5c750, id=0xbfffef90)
at tree-iterator.h:86
#9 0x08163ec0 in expand_calls_inline (stmt_p=0x40e23938, id=0xbfffef90)
at ../../gcc/gcc/tree-inline.c:1699
#10 0x081642f6 in optimize_inline_calls (fn=0x40e238dc)
at ../../gcc/gcc/tree-inline.c:1788
---Type <return> to continue, or q <return> to quit---
#11 0x08184d59 in tree_rest_of_compilation (fndecl=0x40e238dc)
at ../../gcc/gcc/tree-optimize.c:643
#12 0x08111bb1 in expand_body (fn=0x40e238dc)
at ../../gcc/gcc/cp/semantics.c:2964
#13 0x0837851c in cgraph_expand_function (node=0x40e65bd0)
at ../../gcc/gcc/cgraphunit.c:822
#14 0x08379b11 in cgraph_expand_all_functions ()
at ../../gcc/gcc/cgraphunit.c:1689
#15 0x08379d92 in cgraph_optimize () at ../../gcc/gcc/cgraphunit.c:1786
#16 0x080c3c92 in cp_finish_file () at ../../gcc/gcc/cp/decl2.c:3072
#17 0x08049a11 in finish_file () at ../../gcc/gcc/cp/cp-lang.c:113
#18 0x0815bba6 in c_common_parse_file (set_yydebug=11)
at ../../gcc/gcc/c-opts.c:1093
#19 0x08348900 in compile_file () at ../../gcc/gcc/toplev.c:992
#20 0x08349bf7 in do_compile () at ../../gcc/gcc/toplev.c:2088
#21 0x08349c4f in toplev_main (argc=32, argv=0xbffff1d4)
at ../../gcc/gcc/toplev.c:2120
#22 0x08165b6b in main (argc=32, argv=0xbffff1d4) at ../../gcc/gcc/main.c:35
--
Summary: [4.0 Regression] ICE: in fold_convert, at fold-
const.c:1980
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: danglin at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: vax-ultrix
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19222
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/19222] [4.0 Regression] ICE: in fold_convert, at fold-const.c:1980
2005-01-01 23:23 [Bug c++/19222] New: [4.0 Regression] ICE: in fold_convert, at fold-const.c:1980 danglin at gcc dot gnu dot org
@ 2005-01-01 23:29 ` pinskia at gcc dot gnu dot org
2005-01-01 23:38 ` danglin at gcc dot gnu dot org
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-01 23:29 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-01-01 23:29 -------
Can you attach the preprocessed source?
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |pinskia at gcc dot gnu dot
| |org
Keywords| |build, ice-on-valid-code
Target Milestone|--- |4.0.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19222
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/19222] [4.0 Regression] ICE: in fold_convert, at fold-const.c:1980
2005-01-01 23:23 [Bug c++/19222] New: [4.0 Regression] ICE: in fold_convert, at fold-const.c:1980 danglin at gcc dot gnu dot org
2005-01-01 23:29 ` [Bug c++/19222] " pinskia at gcc dot gnu dot org
@ 2005-01-01 23:38 ` danglin at gcc dot gnu dot org
2005-01-01 23:53 ` pinskia at gcc dot gnu dot org
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: danglin at gcc dot gnu dot org @ 2005-01-01 23:38 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From danglin at gcc dot gnu dot org 2005-01-01 23:38 -------
Created an attachment (id=7860)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=7860&action=view)
Preproccessed source
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19222
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/19222] [4.0 Regression] ICE: in fold_convert, at fold-const.c:1980
2005-01-01 23:23 [Bug c++/19222] New: [4.0 Regression] ICE: in fold_convert, at fold-const.c:1980 danglin at gcc dot gnu dot org
2005-01-01 23:29 ` [Bug c++/19222] " pinskia at gcc dot gnu dot org
2005-01-01 23:38 ` danglin at gcc dot gnu dot org
@ 2005-01-01 23:53 ` pinskia at gcc dot gnu dot org
2005-01-02 0:12 ` dave at hiauly1 dot hia dot nrc dot ca
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-01 23:53 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-01-01 23:53 -------
I get a different error at -O0:
/home/dave/gnu/gcc-4.0/objdir/vax-ultrix/libstdc++-v3/include/complex:522: internal compiler
error: in cp_expr_size, at cp/cp-objcp-common.c:101
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19222
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/19222] [4.0 Regression] ICE: in fold_convert, at fold-const.c:1980
2005-01-01 23:23 [Bug c++/19222] New: [4.0 Regression] ICE: in fold_convert, at fold-const.c:1980 danglin at gcc dot gnu dot org
` (2 preceding siblings ...)
2005-01-01 23:53 ` pinskia at gcc dot gnu dot org
@ 2005-01-02 0:12 ` dave at hiauly1 dot hia dot nrc dot ca
2005-01-02 0:16 ` danglin at gcc dot gnu dot org
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: dave at hiauly1 dot hia dot nrc dot ca @ 2005-01-02 0:12 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From dave at hiauly1 dot hia dot nrc dot ca 2005-01-02 00:11 -------
Subject: Re: [4.0 Regression] ICE: in fold_convert, at fold-co
> I get a different error at -O0:
> /home/dave/gnu/gcc-4.0/objdir/vax-ultrix/libstdc++-v3/include/complex:522:
> internal compiler
> error: in cp_expr_size, at cp/cp-objcp-common.c:101
Same here. I get the reported error at -O1 and -O2.
Dave
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19222
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/19222] [4.0 Regression] ICE: in fold_convert, at fold-const.c:1980
2005-01-01 23:23 [Bug c++/19222] New: [4.0 Regression] ICE: in fold_convert, at fold-const.c:1980 danglin at gcc dot gnu dot org
` (3 preceding siblings ...)
2005-01-02 0:12 ` dave at hiauly1 dot hia dot nrc dot ca
@ 2005-01-02 0:16 ` danglin at gcc dot gnu dot org
2005-01-02 0:34 ` pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: danglin at gcc dot gnu dot org @ 2005-01-02 0:16 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From danglin at gcc dot gnu dot org 2005-01-02 00:16 -------
It looks like imbue wants a const locale& as its argument (ios_base.h).
getloc() returns locale. Probably, _M_getloc() should be used but this
doesn't fix the ICE.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19222
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/19222] [4.0 Regression] ICE: in fold_convert, at fold-const.c:1980
2005-01-01 23:23 [Bug c++/19222] New: [4.0 Regression] ICE: in fold_convert, at fold-const.c:1980 danglin at gcc dot gnu dot org
` (4 preceding siblings ...)
2005-01-02 0:16 ` danglin at gcc dot gnu dot org
@ 2005-01-02 0:34 ` pinskia at gcc dot gnu dot org
2005-01-02 0:37 ` pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-02 0:34 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-01-02 00:34 -------
Here is the reduced testcase for -O0 (I assume -O2 is a related problem):
struct locale
{
locale(const locale& __other) throw();
const locale& operator=(const locale& __other) throw();
};
void f1(const locale&);
locale g1(void);
void f()
{
f1(g1());
}
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
GCC build triplet|i686-pc-linux-gnu |
GCC host triplet|i686-pc-linux-gnu |
Last reconfirmed|0000-00-00 00:00:00 |2005-01-02 00:34:02
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19222
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/19222] [4.0 Regression] ICE: in fold_convert, at fold-const.c:1980
2005-01-01 23:23 [Bug c++/19222] New: [4.0 Regression] ICE: in fold_convert, at fold-const.c:1980 danglin at gcc dot gnu dot org
` (5 preceding siblings ...)
2005-01-02 0:34 ` pinskia at gcc dot gnu dot org
@ 2005-01-02 0:37 ` pinskia at gcc dot gnu dot org
2005-01-25 19:12 ` pinskia at gcc dot gnu dot org
2005-01-29 17:36 ` pinskia at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-02 0:37 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-01-02 00:37 -------
On most targets we return the struct by slot address:
g1 (&D.1575) [return slot addr];
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19222
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/19222] [4.0 Regression] ICE: in fold_convert, at fold-const.c:1980
2005-01-01 23:23 [Bug c++/19222] New: [4.0 Regression] ICE: in fold_convert, at fold-const.c:1980 danglin at gcc dot gnu dot org
` (6 preceding siblings ...)
2005-01-02 0:37 ` pinskia at gcc dot gnu dot org
@ 2005-01-25 19:12 ` pinskia at gcc dot gnu dot org
2005-01-29 17:36 ` pinskia at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-25 19:12 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-01-25 19:11 -------
Removing the target milestone per Mark: <http://gcc.gnu.org/ml/gcc/2005-01/msg01255.html>.
This is only known to happen on VAX.
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.0.0 |---
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19222
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/19222] [4.0 Regression] ICE: in fold_convert, at fold-const.c:1980
2005-01-01 23:23 [Bug c++/19222] New: [4.0 Regression] ICE: in fold_convert, at fold-const.c:1980 danglin at gcc dot gnu dot org
` (7 preceding siblings ...)
2005-01-25 19:12 ` pinskia at gcc dot gnu dot org
@ 2005-01-29 17:36 ` pinskia at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-29 17:36 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-01-29 17:36 -------
This is a dup of bug 19185 which is exactly the same problem just changed where the ICE is.
*** This bug has been marked as a duplicate of 19185 ***
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19222
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2005-01-29 17:36 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-01 23:23 [Bug c++/19222] New: [4.0 Regression] ICE: in fold_convert, at fold-const.c:1980 danglin at gcc dot gnu dot org
2005-01-01 23:29 ` [Bug c++/19222] " pinskia at gcc dot gnu dot org
2005-01-01 23:38 ` danglin at gcc dot gnu dot org
2005-01-01 23:53 ` pinskia at gcc dot gnu dot org
2005-01-02 0:12 ` dave at hiauly1 dot hia dot nrc dot ca
2005-01-02 0:16 ` danglin at gcc dot gnu dot org
2005-01-02 0:34 ` pinskia at gcc dot gnu dot org
2005-01-02 0:37 ` pinskia at gcc dot gnu dot org
2005-01-25 19:12 ` pinskia at gcc dot gnu dot org
2005-01-29 17:36 ` pinskia 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).