public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/49216] New: [C++0x][Regression] ICE on compiling new-expression with braced-init-list for arrays
@ 2011-05-28 21:45 gintensubaru at gmail dot com
2011-06-20 21:31 ` [Bug c++/49216] " jason at gcc dot gnu.org
` (10 more replies)
0 siblings, 11 replies; 12+ messages in thread
From: gintensubaru at gmail dot com @ 2011-05-28 21:45 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49216
Summary: [C++0x][Regression] ICE on compiling new-expression
with braced-init-list for arrays
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: gintensubaru@gmail.com
int main() {
new int[1]{};
}
This code becomes ICE on following versions :
4.6.0
4.6-20110527
4.7-20110523
Here's the error message ( on gcc-4.6.0 ) :
$ g++ -std=c++0x bug.cc
bug.cc: In function 'int main()':
bug.cc:2:15: internal compiler error: in gimplify_init_constructor, at
gimplify.c:3973
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/49216] [C++0x][Regression] ICE on compiling new-expression with braced-init-list for arrays
2011-05-28 21:45 [Bug c++/49216] New: [C++0x][Regression] ICE on compiling new-expression with braced-init-list for arrays gintensubaru at gmail dot com
@ 2011-06-20 21:31 ` jason at gcc dot gnu.org
2011-06-21 2:24 ` jason at gcc dot gnu.org
` (9 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: jason at gcc dot gnu.org @ 2011-06-20 21:31 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49216
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2011.06.20 21:30:25
CC| |jason at gcc dot gnu.org
AssignedTo|unassigned at gcc dot |jason at gcc dot gnu.org
|gnu.org |
Ever Confirmed|0 |1
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/49216] [C++0x][Regression] ICE on compiling new-expression with braced-init-list for arrays
2011-05-28 21:45 [Bug c++/49216] New: [C++0x][Regression] ICE on compiling new-expression with braced-init-list for arrays gintensubaru at gmail dot com
2011-06-20 21:31 ` [Bug c++/49216] " jason at gcc dot gnu.org
@ 2011-06-21 2:24 ` jason at gcc dot gnu.org
2011-06-21 2:29 ` jason at gcc dot gnu.org
` (8 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: jason at gcc dot gnu.org @ 2011-06-21 2:24 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49216
--- Comment #1 from Jason Merrill <jason at gcc dot gnu.org> 2011-06-21 02:24:20 UTC ---
Author: jason
Date: Tue Jun 21 02:24:17 2011
New Revision: 175237
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=175237
Log:
PR c++/49216
* init.c (build_vec_init): Don't try to use a CONSTRUCTOR when
base is a pointer.
* typeck2.c (process_init_constructor_array): Use {} for classes,
too.
* call.c (convert_like_real): Handle substitution failure.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/initlist53.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/call.c
trunk/gcc/cp/init.c
trunk/gcc/cp/typeck2.c
trunk/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/49216] [C++0x][Regression] ICE on compiling new-expression with braced-init-list for arrays
2011-05-28 21:45 [Bug c++/49216] New: [C++0x][Regression] ICE on compiling new-expression with braced-init-list for arrays gintensubaru at gmail dot com
2011-06-20 21:31 ` [Bug c++/49216] " jason at gcc dot gnu.org
2011-06-21 2:24 ` jason at gcc dot gnu.org
@ 2011-06-21 2:29 ` jason at gcc dot gnu.org
2011-06-25 22:17 ` ebotcazou at gcc dot gnu.org
` (7 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: jason at gcc dot gnu.org @ 2011-06-21 2:29 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49216
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.7.0
--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> 2011-06-21 02:28:21 UTC ---
Fixed for 4.7.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/49216] [C++0x][Regression] ICE on compiling new-expression with braced-init-list for arrays
2011-05-28 21:45 [Bug c++/49216] New: [C++0x][Regression] ICE on compiling new-expression with braced-init-list for arrays gintensubaru at gmail dot com
` (2 preceding siblings ...)
2011-06-21 2:29 ` jason at gcc dot gnu.org
@ 2011-06-25 22:17 ` ebotcazou at gcc dot gnu.org
2011-06-29 20:07 ` jason at gcc dot gnu.org
` (6 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2011-06-25 22:17 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49216
Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ebotcazou at gcc dot
| |gnu.org
--- Comment #3 from Eric Botcazou <ebotcazou at gcc dot gnu.org> 2011-06-25 22:17:04 UTC ---
The test doesn't pass on SPARC/Solaris:
Running target unix
FAIL: g++.dg/cpp0x/initlist53.C execution test
Program received signal SIGABRT, Aborted.
0xff1a01cc in _libc_kill () from /usr/lib/libc.so.1
(gdb) bt
#0 0xff1a01cc in _libc_kill () from /usr/lib/libc.so.1
#1 0xff13598c in abort () from /usr/lib/libc.so.1
#2 0x000107d4 in main ()
at
/nile.build/botcazou/gcc-head/src/gcc/testsuite/g++.dg/cpp0x/initlist53.C:19
(gdb) frame 2
#2 0x000107d4 in main ()
at
/nile.build/botcazou/gcc-head/src/gcc/testsuite/g++.dg/cpp0x/initlist53.C:19
19 abort();
(gdb) p p
$2 = (int *) 0x20ac8
(gdb) p p[0]
$3 = 133840
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/49216] [C++0x][Regression] ICE on compiling new-expression with braced-init-list for arrays
2011-05-28 21:45 [Bug c++/49216] New: [C++0x][Regression] ICE on compiling new-expression with braced-init-list for arrays gintensubaru at gmail dot com
` (3 preceding siblings ...)
2011-06-25 22:17 ` ebotcazou at gcc dot gnu.org
@ 2011-06-29 20:07 ` jason at gcc dot gnu.org
2011-06-29 22:28 ` jason at gcc dot gnu.org
` (5 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: jason at gcc dot gnu.org @ 2011-06-29 20:07 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49216
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |ASSIGNED
Resolution|FIXED |
--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> 2011-06-29 20:07:08 UTC ---
Indeed, it only passes on linux because malloc returns zeroed memory.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/49216] [C++0x][Regression] ICE on compiling new-expression with braced-init-list for arrays
2011-05-28 21:45 [Bug c++/49216] New: [C++0x][Regression] ICE on compiling new-expression with braced-init-list for arrays gintensubaru at gmail dot com
` (4 preceding siblings ...)
2011-06-29 20:07 ` jason at gcc dot gnu.org
@ 2011-06-29 22:28 ` jason at gcc dot gnu.org
2011-06-29 22:29 ` jason at gcc dot gnu.org
` (4 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: jason at gcc dot gnu.org @ 2011-06-29 22:28 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49216
--- Comment #5 from Jason Merrill <jason at gcc dot gnu.org> 2011-06-29 22:28:18 UTC ---
Author: jason
Date: Wed Jun 29 22:28:15 2011
New Revision: 175674
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=175674
Log:
PR c++/49216
* init.c (build_new_1): Pass {} down to build_vec_init.
(build_vec_init): Handle it.
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/init.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/g++.dg/cpp0x/initlist-value.C
trunk/gcc/testsuite/g++.dg/cpp0x/initlist53.C
trunk/gcc/testsuite/g++.old-deja/g++.ext/arrnew2.C
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/49216] [C++0x][Regression] ICE on compiling new-expression with braced-init-list for arrays
2011-05-28 21:45 [Bug c++/49216] New: [C++0x][Regression] ICE on compiling new-expression with braced-init-list for arrays gintensubaru at gmail dot com
` (5 preceding siblings ...)
2011-06-29 22:28 ` jason at gcc dot gnu.org
@ 2011-06-29 22:29 ` jason at gcc dot gnu.org
2011-10-11 18:33 ` [Bug c++/49216] [4.6 regression][C++0x] " jason at gcc dot gnu.org
` (3 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: jason at gcc dot gnu.org @ 2011-06-29 22:29 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49216
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #6 from Jason Merrill <jason at gcc dot gnu.org> 2011-06-29 22:28:46 UTC ---
Fixed for real this time, hopefully.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/49216] [4.6 regression][C++0x] ICE on compiling new-expression with braced-init-list for arrays
2011-05-28 21:45 [Bug c++/49216] New: [C++0x][Regression] ICE on compiling new-expression with braced-init-list for arrays gintensubaru at gmail dot com
` (6 preceding siblings ...)
2011-06-29 22:29 ` jason at gcc dot gnu.org
@ 2011-10-11 18:33 ` jason at gcc dot gnu.org
2011-10-11 18:35 ` jason at gcc dot gnu.org
` (2 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: jason at gcc dot gnu.org @ 2011-10-11 18:33 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49216
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |
Summary|[C++0x][Regression] ICE on |[4.6 regression][C++0x] ICE
|compiling new-expression |on compiling new-expression
|with braced-init-list for |with braced-init-list for
|arrays |arrays
--- Comment #7 from Jason Merrill <jason at gcc dot gnu.org> 2011-10-11 18:32:41 UTC ---
Still a 4.6 regression.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/49216] [4.6 regression][C++0x] ICE on compiling new-expression with braced-init-list for arrays
2011-05-28 21:45 [Bug c++/49216] New: [C++0x][Regression] ICE on compiling new-expression with braced-init-list for arrays gintensubaru at gmail dot com
` (7 preceding siblings ...)
2011-10-11 18:33 ` [Bug c++/49216] [4.6 regression][C++0x] " jason at gcc dot gnu.org
@ 2011-10-11 18:35 ` jason at gcc dot gnu.org
2011-10-11 19:51 ` jason at gcc dot gnu.org
2011-10-11 19:52 ` jason at gcc dot gnu.org
10 siblings, 0 replies; 12+ messages in thread
From: jason at gcc dot gnu.org @ 2011-10-11 18:35 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49216
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |z0sh at sogetthis dot com
--- Comment #8 from Jason Merrill <jason at gcc dot gnu.org> 2011-10-11 18:33:12 UTC ---
*** Bug 50458 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/49216] [4.6 regression][C++0x] ICE on compiling new-expression with braced-init-list for arrays
2011-05-28 21:45 [Bug c++/49216] New: [C++0x][Regression] ICE on compiling new-expression with braced-init-list for arrays gintensubaru at gmail dot com
` (8 preceding siblings ...)
2011-10-11 18:35 ` jason at gcc dot gnu.org
@ 2011-10-11 19:51 ` jason at gcc dot gnu.org
2011-10-11 19:52 ` jason at gcc dot gnu.org
10 siblings, 0 replies; 12+ messages in thread
From: jason at gcc dot gnu.org @ 2011-10-11 19:51 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49216
--- Comment #9 from Jason Merrill <jason at gcc dot gnu.org> 2011-10-11 19:50:55 UTC ---
Author: jason
Date: Tue Oct 11 19:50:49 2011
New Revision: 179819
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=179819
Log:
PR c++/49216
* init.c (build_vec_init): Avoid crash on new int[1]{}.
Added:
branches/gcc-4_6-branch/gcc/testsuite/g++.dg/cpp0x/initlist-49216.C
Modified:
branches/gcc-4_6-branch/gcc/cp/ChangeLog
branches/gcc-4_6-branch/gcc/cp/init.c
branches/gcc-4_6-branch/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/49216] [4.6 regression][C++0x] ICE on compiling new-expression with braced-init-list for arrays
2011-05-28 21:45 [Bug c++/49216] New: [C++0x][Regression] ICE on compiling new-expression with braced-init-list for arrays gintensubaru at gmail dot com
` (9 preceding siblings ...)
2011-10-11 19:51 ` jason at gcc dot gnu.org
@ 2011-10-11 19:52 ` jason at gcc dot gnu.org
10 siblings, 0 replies; 12+ messages in thread
From: jason at gcc dot gnu.org @ 2011-10-11 19:52 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49216
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |FIXED
Target Milestone|4.7.0 |4.6.2
--- Comment #10 from Jason Merrill <jason at gcc dot gnu.org> 2011-10-11 19:51:46 UTC ---
ICE fixed for 4.6.2; value-initialization semantics fixed for 4.7.
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2011-10-11 19:52 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-28 21:45 [Bug c++/49216] New: [C++0x][Regression] ICE on compiling new-expression with braced-init-list for arrays gintensubaru at gmail dot com
2011-06-20 21:31 ` [Bug c++/49216] " jason at gcc dot gnu.org
2011-06-21 2:24 ` jason at gcc dot gnu.org
2011-06-21 2:29 ` jason at gcc dot gnu.org
2011-06-25 22:17 ` ebotcazou at gcc dot gnu.org
2011-06-29 20:07 ` jason at gcc dot gnu.org
2011-06-29 22:28 ` jason at gcc dot gnu.org
2011-06-29 22:29 ` jason at gcc dot gnu.org
2011-10-11 18:33 ` [Bug c++/49216] [4.6 regression][C++0x] " jason at gcc dot gnu.org
2011-10-11 18:35 ` jason at gcc dot gnu.org
2011-10-11 19:51 ` jason at gcc dot gnu.org
2011-10-11 19:52 ` 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).