public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/48726] New: ICE with initializer_list of unique_ptr in gcc-4.6.0
@ 2011-04-22 14:40 john.salmon at deshaw dot com
2011-04-22 15:57 ` [Bug c++/48726] " redi at gcc dot gnu.org
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: john.salmon at deshaw dot com @ 2011-04-22 14:40 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48726
Summary: ICE with initializer_list of unique_ptr in gcc-4.6.0
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: john.salmon@deshaw.com
The following code generates an ICE while trying to create a
std::initializer_list of unique_ptrs. This is with
Target=x86_64-unknown-linux-gnu.
salmonj@drdlogin0039.en.desres$ cat il.cpp
#include <memory>
struct Foo{
int i;
};
typedef std::unique_ptr<Foo> up;
std::initializer_list<up> il{up{new Foo}, up{new Foo}};
salmonj@drdlogin0039.en.desres$ desres-cleanenv -m gcc/4.6.0-23A/bin g++
-std=c++0x -Wall -c -o il.o il.cpp
il.cpp:8:55: internal compiler error: in record_reference, at cgraphbuild.c:60
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
salmonj@drdlogin0039.en.desres$
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/48726] ICE with initializer_list of unique_ptr in gcc-4.6.0
2011-04-22 14:40 [Bug c++/48726] New: ICE with initializer_list of unique_ptr in gcc-4.6.0 john.salmon at deshaw dot com
@ 2011-04-22 15:57 ` redi at gcc dot gnu.org
2011-04-22 16:26 ` paolo.carlini at oracle dot com
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: redi at gcc dot gnu.org @ 2011-04-22 15:57 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48726
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-04-22 15:56:48 UTC ---
if this is PR 48281 then it's fixed in 4.6.1
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/48726] ICE with initializer_list of unique_ptr in gcc-4.6.0
2011-04-22 14:40 [Bug c++/48726] New: ICE with initializer_list of unique_ptr in gcc-4.6.0 john.salmon at deshaw dot com
2011-04-22 15:57 ` [Bug c++/48726] " redi at gcc dot gnu.org
@ 2011-04-22 16:26 ` paolo.carlini at oracle dot com
2011-04-22 16:31 ` [Bug c++/48726] [C++0x] [4.6 Regression] ICE with initializer_list of unique_ptr paolo.carlini at oracle dot com
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-04-22 16:26 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48726
--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-04-22 16:26:19 UTC ---
Maybe it isn't? Because I just rebuilt 4_6-branch (Rev. 172860) and still ICEs
for me. Mainline is fine, however.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/48726] [C++0x] [4.6 Regression] ICE with initializer_list of unique_ptr
2011-04-22 14:40 [Bug c++/48726] New: ICE with initializer_list of unique_ptr in gcc-4.6.0 john.salmon at deshaw dot com
2011-04-22 15:57 ` [Bug c++/48726] " redi at gcc dot gnu.org
2011-04-22 16:26 ` paolo.carlini at oracle dot com
@ 2011-04-22 16:31 ` paolo.carlini at oracle dot com
2011-04-26 21:59 ` jason at gcc dot gnu.org
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-04-22 16:31 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48726
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2011.04.22 16:30:27
Version|unknown |4.6.0
Target Milestone|--- |4.6.1
Summary|[C++0x] ICE with |[C++0x] [4.6 Regression]
|initializer_list of |ICE with initializer_list
|unique_ptr |of unique_ptr
Ever Confirmed|0 |1
--- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-04-22 16:30:27 UTC ---
Let's mark it as a regression too, to play safe.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/48726] [C++0x] [4.6 Regression] ICE with initializer_list of unique_ptr
2011-04-22 14:40 [Bug c++/48726] New: ICE with initializer_list of unique_ptr in gcc-4.6.0 john.salmon at deshaw dot com
` (2 preceding siblings ...)
2011-04-22 16:31 ` [Bug c++/48726] [C++0x] [4.6 Regression] ICE with initializer_list of unique_ptr paolo.carlini at oracle dot com
@ 2011-04-26 21:59 ` jason at gcc dot gnu.org
2011-04-26 23:43 ` jason at gcc dot gnu.org
2011-04-26 23:47 ` jason at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: jason at gcc dot gnu.org @ 2011-04-26 21:59 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48726
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
CC| |jason at gcc dot gnu.org
AssignedTo|unassigned at gcc dot |jason at gcc dot gnu.org
|gnu.org |
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/48726] [C++0x] [4.6 Regression] ICE with initializer_list of unique_ptr
2011-04-22 14:40 [Bug c++/48726] New: ICE with initializer_list of unique_ptr in gcc-4.6.0 john.salmon at deshaw dot com
` (3 preceding siblings ...)
2011-04-26 21:59 ` jason at gcc dot gnu.org
@ 2011-04-26 23:43 ` jason at gcc dot gnu.org
2011-04-26 23:47 ` jason at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: jason at gcc dot gnu.org @ 2011-04-26 23:43 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48726
--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> 2011-04-26 23:42:53 UTC ---
Author: jason
Date: Tue Apr 26 23:42:50 2011
New Revision: 172993
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=172993
Log:
PR c++/48726
* call.c (convert_like_real): Correct TREE_CONSTANT on CONSTRUCTOR.
* decl.c (reshape_init_array_1): Likewise.
Added:
branches/gcc-4_6-branch/gcc/testsuite/g++.dg/cpp0x/initlist48.C
Modified:
branches/gcc-4_6-branch/gcc/cp/ChangeLog
branches/gcc-4_6-branch/gcc/cp/call.c
branches/gcc-4_6-branch/gcc/cp/decl.c
branches/gcc-4_6-branch/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/48726] [C++0x] [4.6 Regression] ICE with initializer_list of unique_ptr
2011-04-22 14:40 [Bug c++/48726] New: ICE with initializer_list of unique_ptr in gcc-4.6.0 john.salmon at deshaw dot com
` (4 preceding siblings ...)
2011-04-26 23:43 ` jason at gcc dot gnu.org
@ 2011-04-26 23:47 ` jason at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: jason at gcc dot gnu.org @ 2011-04-26 23:47 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48726
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #5 from Jason Merrill <jason at gcc dot gnu.org> 2011-04-26 23:43:35 UTC ---
It was fixed on the trunk by the last patch I posted with the fix for 48281,
which I've now applied for 4.6.1 as well.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2011-04-26 23:47 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-22 14:40 [Bug c++/48726] New: ICE with initializer_list of unique_ptr in gcc-4.6.0 john.salmon at deshaw dot com
2011-04-22 15:57 ` [Bug c++/48726] " redi at gcc dot gnu.org
2011-04-22 16:26 ` paolo.carlini at oracle dot com
2011-04-22 16:31 ` [Bug c++/48726] [C++0x] [4.6 Regression] ICE with initializer_list of unique_ptr paolo.carlini at oracle dot com
2011-04-26 21:59 ` jason at gcc dot gnu.org
2011-04-26 23:43 ` jason at gcc dot gnu.org
2011-04-26 23:47 ` jason at gcc dot gnu.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).