public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/16042] New: Segmentation fault : array assign
@ 2004-06-17 23:39 pepster at users dot sourceforge dot net
2004-06-17 23:46 ` [Bug c++/16042] " pinskia at gcc dot gnu dot org
` (11 more replies)
0 siblings, 12 replies; 13+ messages in thread
From: pepster at users dot sourceforge dot net @ 2004-06-17 23:39 UTC (permalink / raw)
To: gcc-bugs
Code:
int
main(int ac, char** av)
{
int to[6] = (int[6]){-1,-1,-1,-1,-1,-1};
return 0;
}
$uname -a
Linux yoda 2.4.18-18.8.0 #1 Wed Nov 13 22:52:09 EST 2002 i686 athlon i386 GNU/Linux
g++ -v -o m.o -c m.cc
Reading specs from /usr/local/lib/gcc/i686-pc-linux-gnu/3.4.0/specs
Configured with: ../gcc-3.4.0/configure --enable-languafes=c,c++
Thread model: posix
gcc version 3.4.0
/usr/local/libexec/gcc/i686-pc-linux-gnu/3.4.0/cc1plus -quiet -v -D_GNU_SOURCE
m.cc -quiet -dumpbase m.cc -mtune=pentiumpro -auxbase-strip m.o -version -o
/tmp/ccUaqwp3.s
ignoring nonexistent directory "NONE/include"
ignoring nonexistent directory
"/usr/local/lib/gcc/i686-pc-linux-gnu/3.4.0/../../../../i686-pc-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
/usr/local/lib/gcc/i686-pc-linux-gnu/3.4.0/../../../../include/c++/3.4.0
/usr/local/lib/gcc/i686-pc-linux-gnu/3.4.0/../../../../include/c++/3.4.0/i686-pc-linux-gnu
/usr/local/lib/gcc/i686-pc-linux-gnu/3.4.0/../../../../include/c++/3.4.0/backward
/usr/local/include
/usr/local/lib/gcc/i686-pc-linux-gnu/3.4.0/include
/usr/include
End of search list.
GNU C++ version 3.4.0 (i686-pc-linux-gnu)
compiled by GNU C version 3.4.0.
GGC heuristics: --param ggc-min-expand=45 --param ggc-min-heapsize=29906
m.cc: In function `int main(int, char**)':
m.cc:5: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
Compilation exited abnormally with code 1 at Fri Jun 18 11:37:10
--
Summary: Segmentation fault : array assign
Product: gcc
Version: 3.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pepster at users dot sourceforge dot net
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16042
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/16042] Segmentation fault : array assign
2004-06-17 23:39 [Bug c++/16042] New: Segmentation fault : array assign pepster at users dot sourceforge dot net
@ 2004-06-17 23:46 ` pinskia at gcc dot gnu dot org
2004-06-18 13:28 ` [Bug c++/16042] [3.3/3.4 regression] ICE with array assignment bangerth at dealii dot org
` (10 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-06-17 23:46 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-06-17 23:46 -------
On the mainline, it errors out:
tin:~/src/gnu/gcctest>gcc pr16042.cc
pr16042.cc: In function `int main(int, char**)':
pr16042.cc:4: error: invalid initializer
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16042
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/16042] [3.3/3.4 regression] ICE with array assignment
2004-06-17 23:39 [Bug c++/16042] New: Segmentation fault : array assign pepster at users dot sourceforge dot net
2004-06-17 23:46 ` [Bug c++/16042] " pinskia at gcc dot gnu dot org
@ 2004-06-18 13:28 ` bangerth at dealii dot org
2004-07-29 15:15 ` pinskia at gcc dot gnu dot org
` (9 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: bangerth at dealii dot org @ 2004-06-18 13:28 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From bangerth at dealii dot org 2004-06-18 13:28 -------
This is a regression in 3.3 and 3.4 which ICE, over 3.2 which doesn't:
g/x> /home/bangerth/bin/gcc-3.2.3/bin/c++ -c x.cc
g/x> /home/bangerth/bin/gcc-3.3.4-pre/bin/c++ -c x.cc
x.cc: In function `int main(int, char**)':
x.cc:4: internal compiler error: tree check: expected tree_list, have
constructor in reshape_init, at cp/decl.c:8408
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
g/x> /home/bangerth/bin/gcc-3.4-pre/bin/c++ -c x.cc
x.cc: In function `int main(int, char**)':
x.cc:4: internal compiler error: tree check: expected tree_list, have
constructor in reshape_init, at cp/decl.c:4373
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
Mainline indeed doesn't ICE, but reports
g/x> /home/bangerth/bin/gcc-3.5-pre/bin/c++ -c x.cc
x.cc: In function `int main(int, char**)':
x.cc:4: error: invalid initializer
This does seem sensible to me, since my understanding is that tha
(compound-type){initializer-list}
syntax is only C99, but not part of the C++ standard.
In any case, the ICE in 3.3 and 3.4 is a regression.
W.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Known to fail| |3.3.4 3.4.0
Known to work| |3.2.3
Last reconfirmed|0000-00-00 00:00:00 |2004-06-18 13:28:26
date| |
Summary|Segmentation fault : array |[3.3/3.4 regression] ICE
|assign |with array assignment
Target Milestone|--- |3.4.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16042
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/16042] [3.3/3.4 regression] ICE with array assignment
2004-06-17 23:39 [Bug c++/16042] New: Segmentation fault : array assign pepster at users dot sourceforge dot net
2004-06-17 23:46 ` [Bug c++/16042] " pinskia at gcc dot gnu dot org
2004-06-18 13:28 ` [Bug c++/16042] [3.3/3.4 regression] ICE with array assignment bangerth at dealii dot org
@ 2004-07-29 15:15 ` pinskia at gcc dot gnu dot org
2004-08-02 6:43 ` mmitchel at gcc dot gnu dot org
` (8 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-07-29 15:15 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-07-29 15:15 -------
Fixed on the mainline
: Search converges between 2004-04-20-trunk (#449) and 2004-05-01-trunk (#450).
Broke
: Search converges between 2003-06-03-trunk (#253) and 2003-06-04-trunk (#254).
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |gdr at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16042
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/16042] [3.3/3.4 regression] ICE with array assignment
2004-06-17 23:39 [Bug c++/16042] New: Segmentation fault : array assign pepster at users dot sourceforge dot net
` (2 preceding siblings ...)
2004-07-29 15:15 ` pinskia at gcc dot gnu dot org
@ 2004-08-02 6:43 ` mmitchel at gcc dot gnu dot org
2004-08-02 11:29 ` giovannibajo at libero dot it
` (7 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-08-02 6:43 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From mmitchel at gcc dot gnu dot org 2004-08-02 06:43 -------
I'm going to leave this open, but remove the target milestone. Given that it's
an ICE-on-invalid and the fact that it's already fixed in the mainline, this is
not a showstopper.
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|3.4.2 |---
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16042
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/16042] [3.3/3.4 regression] ICE with array assignment
2004-06-17 23:39 [Bug c++/16042] New: Segmentation fault : array assign pepster at users dot sourceforge dot net
` (3 preceding siblings ...)
2004-08-02 6:43 ` mmitchel at gcc dot gnu dot org
@ 2004-08-02 11:29 ` giovannibajo at libero dot it
2004-08-02 11:47 ` gdr at integrable-solutions dot net
` (6 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: giovannibajo at libero dot it @ 2004-08-02 11:29 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From giovannibajo at libero dot it 2004-08-02 11:29 -------
Do we support compound initializers in C++?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16042
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/16042] [3.3/3.4 regression] ICE with array assignment
2004-06-17 23:39 [Bug c++/16042] New: Segmentation fault : array assign pepster at users dot sourceforge dot net
` (4 preceding siblings ...)
2004-08-02 11:29 ` giovannibajo at libero dot it
@ 2004-08-02 11:47 ` gdr at integrable-solutions dot net
2004-08-25 4:54 ` pinskia at gcc dot gnu dot org
` (5 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: gdr at integrable-solutions dot net @ 2004-08-02 11:47 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From gdr at integrable-solutions dot net 2004-08-02 11:46 -------
Subject: Re: [3.3/3.4 regression] ICE with array assignment
"giovannibajo at libero dot it" <gcc-bugzilla@gcc.gnu.org> writes:
| Do we support compound initializers in C++?
To the extent where we support most C99 constructs, yes. (Note that
those were GNU extensions when they started).
"compound initializers" are being formalized as "generalized initializer
lists" by the C++ Evolution Group.
-- Gaby
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16042
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/16042] [3.3/3.4 regression] ICE with array assignment
2004-06-17 23:39 [Bug c++/16042] New: Segmentation fault : array assign pepster at users dot sourceforge dot net
` (5 preceding siblings ...)
2004-08-02 11:47 ` gdr at integrable-solutions dot net
@ 2004-08-25 4:54 ` pinskia at gcc dot gnu dot org
2005-01-26 14:12 ` [Bug c++/16042] [3.3/3.4/4.0 " pinskia at gcc dot gnu dot org
` (4 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-08-25 4:54 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-08-25 04:54 -------
*** Bug 17179 has been marked as a duplicate of this bug. ***
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |anders at kaseorg dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16042
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/16042] [3.3/3.4/4.0 regression] ICE with array assignment
2004-06-17 23:39 [Bug c++/16042] New: Segmentation fault : array assign pepster at users dot sourceforge dot net
` (7 preceding siblings ...)
2005-01-26 14:12 ` [Bug c++/16042] [3.3/3.4/4.0 " pinskia at gcc dot gnu dot org
@ 2005-01-26 14:12 ` pinskia at gcc dot gnu dot org
2005-01-31 1:30 ` [Bug c++/16042] [3.3/3.4 " mmitchel at gcc dot gnu dot org
` (2 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-26 14:12 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-01-26 14:11 -------
Actually this was accepted for 3.2.3 (and earlier versions of 3.3.x)
The ICE started: Search converges between 2003-06-03-trunk (#253) and 2003-06-04-trunk (#254).
But note 3.3.3 produced wrong code but 3.3.1 produced correct code.
3.3.x regressed between 20040128 and 20040201.
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice-on-valid-code, rejects-
| |valid, wrong-code
Summary|[3.3/3.4 regression] ICE |[3.3/3.4/4.0 regression] ICE
|with array assignment |with array assignment
Target Milestone|--- |3.4.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16042
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/16042] [3.3/3.4/4.0 regression] ICE with array assignment
2004-06-17 23:39 [Bug c++/16042] New: Segmentation fault : array assign pepster at users dot sourceforge dot net
` (6 preceding siblings ...)
2004-08-25 4:54 ` pinskia at gcc dot gnu dot org
@ 2005-01-26 14:12 ` pinskia at gcc dot gnu dot org
2005-01-26 14:12 ` pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-26 14:12 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-01-26 14:12 -------
*** Bug 19640 has been marked as a duplicate of this bug. ***
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |blaisorblade_spam at yahoo
| |dot it
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16042
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/16042] [3.3/3.4 regression] ICE with array assignment
2004-06-17 23:39 [Bug c++/16042] New: Segmentation fault : array assign pepster at users dot sourceforge dot net
` (8 preceding siblings ...)
2005-01-26 14:12 ` pinskia at gcc dot gnu dot org
@ 2005-01-31 1:30 ` mmitchel at gcc dot gnu dot org
2005-04-29 18:36 ` mmitchel at gcc dot gnu dot org
2005-05-19 17:49 ` mmitchel at gcc dot gnu dot org
11 siblings, 0 replies; 13+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-01-31 1:30 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From mmitchel at gcc dot gnu dot org 2005-01-31 01:30 -------
In GCC 4.0, there is no defect. This code is of course invalid C++. It is not
accepted in GNU C99 mode, so there is no reason to accept it in GNU C++. I have
therefore removed the 4.0 regression markers.
--
What |Removed |Added
----------------------------------------------------------------------------
Known to fail|3.3.4 3.4.0 |3.3.4
Summary|[3.3/3.4/4.0 regression] ICE|[3.3/3.4 regression] ICE
|with array assignment |with array assignment
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16042
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/16042] [3.3/3.4 regression] ICE with array assignment
2004-06-17 23:39 [Bug c++/16042] New: Segmentation fault : array assign pepster at users dot sourceforge dot net
` (9 preceding siblings ...)
2005-01-31 1:30 ` [Bug c++/16042] [3.3/3.4 " mmitchel at gcc dot gnu dot org
@ 2005-04-29 18:36 ` mmitchel at gcc dot gnu dot org
2005-05-19 17:49 ` mmitchel at gcc dot gnu dot org
11 siblings, 0 replies; 13+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-04-29 18:36 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From mmitchel at gcc dot gnu dot org 2005-04-29 18:36 -------
This is invalid code, so removed rejects-valid marker.
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords|ice-on-valid-code, rejects- |ice-on-invalid-code
|valid, wrong-code |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16042
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/16042] [3.3/3.4 regression] ICE with array assignment
2004-06-17 23:39 [Bug c++/16042] New: Segmentation fault : array assign pepster at users dot sourceforge dot net
` (10 preceding siblings ...)
2005-04-29 18:36 ` mmitchel at gcc dot gnu dot org
@ 2005-05-19 17:49 ` mmitchel at gcc dot gnu dot org
11 siblings, 0 replies; 13+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-05-19 17:49 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|3.4.4 |3.4.5
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16042
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2005-05-19 17:48 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-17 23:39 [Bug c++/16042] New: Segmentation fault : array assign pepster at users dot sourceforge dot net
2004-06-17 23:46 ` [Bug c++/16042] " pinskia at gcc dot gnu dot org
2004-06-18 13:28 ` [Bug c++/16042] [3.3/3.4 regression] ICE with array assignment bangerth at dealii dot org
2004-07-29 15:15 ` pinskia at gcc dot gnu dot org
2004-08-02 6:43 ` mmitchel at gcc dot gnu dot org
2004-08-02 11:29 ` giovannibajo at libero dot it
2004-08-02 11:47 ` gdr at integrable-solutions dot net
2004-08-25 4:54 ` pinskia at gcc dot gnu dot org
2005-01-26 14:12 ` [Bug c++/16042] [3.3/3.4/4.0 " pinskia at gcc dot gnu dot org
2005-01-26 14:12 ` pinskia at gcc dot gnu dot org
2005-01-31 1:30 ` [Bug c++/16042] [3.3/3.4 " mmitchel at gcc dot gnu dot org
2005-04-29 18:36 ` mmitchel at gcc dot gnu dot org
2005-05-19 17:49 ` mmitchel 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).