public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/41754] New: initializer list internal compiler segfault
@ 2009-10-19 13:32 tom dot deseyn at gmail dot com
2009-10-31 21:12 ` [Bug c++/41754] " jason at gcc dot gnu dot org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: tom dot deseyn at gmail dot com @ 2009-10-19 13:32 UTC (permalink / raw)
To: gcc-bugs
This program generates an internal compiler error: Segmentation fault.
#include <map>
#include <string>
#include <iostream>
using namespace std;
int main()
{
map<string, string> m;
m.insert({{"t", "t"}, {"y", "y"}});
return 0;
}
$ g++ -std=c++0x test.cpp
test.cpp: In function 'int main()':
test.cpp:11: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
This happens on a compiler built on cygwin from:
svn://gcc.gnu.org/svn/gcc/tags/gcc_4_4_2_release
and
svn://gcc.gnu.org/svn/gcc/branches/gcc-4_4-branch@152637
with ./configure --prefix=... --disable-sjlj-exceptions
Tom@crius ~/tmp
$ /opt/gcc4.4.2/bin/gcc -v
Using built-in specs.
Target: i686-pc-cygwin
Configured with: /home/Tom/svn/gcc4.4.2/configure --prefix=/opt/gcc4.4.2
--disab
le-sjlj-exceptions
Thread model: single
gcc version 4.4.2 (GCC)
$ /opt/gcc4.4/bin/gcc -v
Using built-in specs.
Target: i686-pc-cygwin
Configured with: /home/Tom/svn/gcc/configure --prefix=/opt/gcc4.4
--disable-sjlj
-exceptions
Thread model: single
gcc version 4.4.2 20091011 (prerelease) (GCC)
--
Summary: initializer list internal compiler segfault
Product: gcc
Version: 4.4.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: tom dot deseyn at gmail dot com
GCC build triplet: i686-pc-cygwin
GCC host triplet: i686-pc-cygwin
GCC target triplet: i686-pc-cygwin
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41754
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/41754] initializer list internal compiler segfault
2009-10-19 13:32 [Bug c++/41754] New: initializer list internal compiler segfault tom dot deseyn at gmail dot com
@ 2009-10-31 21:12 ` jason at gcc dot gnu dot org
2009-11-01 5:07 ` jason at gcc dot gnu dot org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: jason at gcc dot gnu dot org @ 2009-10-31 21:12 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from jason at gcc dot gnu dot org 2009-10-31 21:12 -------
Confirmed with current 4.4 branch. 4.5 doesn't segfault for some reason, but
we run into the same invalid code.
--
jason at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |jason at gcc dot gnu dot org
|dot org |
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2009-10-31 21:12:37
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41754
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/41754] initializer list internal compiler segfault
2009-10-19 13:32 [Bug c++/41754] New: initializer list internal compiler segfault tom dot deseyn at gmail dot com
2009-10-31 21:12 ` [Bug c++/41754] " jason at gcc dot gnu dot org
@ 2009-11-01 5:07 ` jason at gcc dot gnu dot org
2009-11-01 5:27 ` jason at gcc dot gnu dot org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: jason at gcc dot gnu dot org @ 2009-11-01 5:07 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from jason at gcc dot gnu dot org 2009-11-01 05:06 -------
Subject: Bug 41754
Author: jason
Date: Sun Nov 1 05:06:42 2009
New Revision: 153788
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=153788
Log:
PR c++/41754
* call.c (compare_ics): Avoid bad union use when
comparing two ck_lists.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/initlist25.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/call.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41754
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/41754] initializer list internal compiler segfault
2009-10-19 13:32 [Bug c++/41754] New: initializer list internal compiler segfault tom dot deseyn at gmail dot com
2009-10-31 21:12 ` [Bug c++/41754] " jason at gcc dot gnu dot org
2009-11-01 5:07 ` jason at gcc dot gnu dot org
@ 2009-11-01 5:27 ` jason at gcc dot gnu dot org
2009-11-01 19:03 ` jason at gcc dot gnu dot org
2009-11-01 20:51 ` tom dot deseyn at gmail dot com
4 siblings, 0 replies; 6+ messages in thread
From: jason at gcc dot gnu dot org @ 2009-11-01 5:27 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from jason at gcc dot gnu dot org 2009-11-01 05:27 -------
Subject: Bug 41754
Author: jason
Date: Sun Nov 1 05:27:04 2009
New Revision: 153791
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=153791
Log:
PR c++/41754
* call.c (compare_ics): Avoid bad union use when
comparing two ck_lists.
Added:
branches/gcc-4_4-branch/gcc/testsuite/g++.dg/cpp0x/initlist25.C
- copied unchanged from r153788,
trunk/gcc/testsuite/g++.dg/cpp0x/initlist25.C
Modified:
branches/gcc-4_4-branch/gcc/cp/ChangeLog
branches/gcc-4_4-branch/gcc/cp/call.c
branches/gcc-4_4-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41754
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/41754] initializer list internal compiler segfault
2009-10-19 13:32 [Bug c++/41754] New: initializer list internal compiler segfault tom dot deseyn at gmail dot com
` (2 preceding siblings ...)
2009-11-01 5:27 ` jason at gcc dot gnu dot org
@ 2009-11-01 19:03 ` jason at gcc dot gnu dot org
2009-11-01 20:51 ` tom dot deseyn at gmail dot com
4 siblings, 0 replies; 6+ messages in thread
From: jason at gcc dot gnu dot org @ 2009-11-01 19:03 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from jason at gcc dot gnu dot org 2009-11-01 19:03 -------
Fixed.
--
jason at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.4.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41754
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/41754] initializer list internal compiler segfault
2009-10-19 13:32 [Bug c++/41754] New: initializer list internal compiler segfault tom dot deseyn at gmail dot com
` (3 preceding siblings ...)
2009-11-01 19:03 ` jason at gcc dot gnu dot org
@ 2009-11-01 20:51 ` tom dot deseyn at gmail dot com
4 siblings, 0 replies; 6+ messages in thread
From: tom dot deseyn at gmail dot com @ 2009-11-01 20:51 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from tom dot deseyn at gmail dot com 2009-11-01 20:51 -------
Thanks
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41754
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2009-11-01 20:51 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-19 13:32 [Bug c++/41754] New: initializer list internal compiler segfault tom dot deseyn at gmail dot com
2009-10-31 21:12 ` [Bug c++/41754] " jason at gcc dot gnu dot org
2009-11-01 5:07 ` jason at gcc dot gnu dot org
2009-11-01 5:27 ` jason at gcc dot gnu dot org
2009-11-01 19:03 ` jason at gcc dot gnu dot org
2009-11-01 20:51 ` tom dot deseyn at gmail dot com
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).