public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/50443] New: ICE when using brace-enclosed initializer for C-style array in constructor
@ 2011-09-17 14:04 z0sh at sogetthis dot com
2011-09-17 21:20 ` [Bug c++/50443] " redi at gcc dot gnu.org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: z0sh at sogetthis dot com @ 2011-09-17 14:04 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50443
Bug #: 50443
Summary: ICE when using brace-enclosed initializer for C-style
array in constructor
Classification: Unclassified
Product: gcc
Version: 4.6.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: z0sh@sogetthis.com
Host: x86
Target: x86
The following code causes GCC 4.6.1 with -std=c++0x to crash:
struct Foo
{
Foo() : a{{5,7,3}} { }
int a[3];
};
Message: "internal compiler error: in cxx_eval_bare_aggregate, at
cp/semantics.c:6539"
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/50443] ICE when using brace-enclosed initializer for C-style array in constructor
2011-09-17 14:04 [Bug c++/50443] New: ICE when using brace-enclosed initializer for C-style array in constructor z0sh at sogetthis dot com
@ 2011-09-17 21:20 ` redi at gcc dot gnu.org
2011-09-17 21:33 ` redi at gcc dot gnu.org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: redi at gcc dot gnu.org @ 2011-09-17 21:20 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50443
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-09-17 20:49:21 UTC ---
works fine with
gcc version 4.7.0 20110917 (experimental) [trunk revision 178930] (GCC)
and
gcc version 4.6.2 20110917 (prerelease) [gcc-4_6-branch revision 178930] (GCC)
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/50443] ICE when using brace-enclosed initializer for C-style array in constructor
2011-09-17 14:04 [Bug c++/50443] New: ICE when using brace-enclosed initializer for C-style array in constructor z0sh at sogetthis dot com
2011-09-17 21:20 ` [Bug c++/50443] " redi at gcc dot gnu.org
@ 2011-09-17 21:33 ` redi at gcc dot gnu.org
2011-09-17 22:36 ` z0sh at sogetthis dot com
2011-09-22 23:15 ` paolo.carlini at oracle dot com
3 siblings, 0 replies; 5+ messages in thread
From: redi at gcc dot gnu.org @ 2011-09-17 21:33 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50443
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-09-17 20:55:14 UTC ---
by "works fine" I mean no ICE, there's an error because it should be a{5,7,3}
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/50443] ICE when using brace-enclosed initializer for C-style array in constructor
2011-09-17 14:04 [Bug c++/50443] New: ICE when using brace-enclosed initializer for C-style array in constructor z0sh at sogetthis dot com
2011-09-17 21:20 ` [Bug c++/50443] " redi at gcc dot gnu.org
2011-09-17 21:33 ` redi at gcc dot gnu.org
@ 2011-09-17 22:36 ` z0sh at sogetthis dot com
2011-09-22 23:15 ` paolo.carlini at oracle dot com
3 siblings, 0 replies; 5+ messages in thread
From: z0sh at sogetthis dot com @ 2011-09-17 22:36 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50443
--- Comment #3 from Kerrek SB <z0sh at sogetthis dot com> 2011-09-17 21:50:05 UTC ---
Alright, if it's fixed already, that's fine. I only have the full release
versions, so I didn't test anything newer than 4.6.1. Thanks!
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/50443] ICE when using brace-enclosed initializer for C-style array in constructor
2011-09-17 14:04 [Bug c++/50443] New: ICE when using brace-enclosed initializer for C-style array in constructor z0sh at sogetthis dot com
` (2 preceding siblings ...)
2011-09-17 22:36 ` z0sh at sogetthis dot com
@ 2011-09-22 23:15 ` paolo.carlini at oracle dot com
3 siblings, 0 replies; 5+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-09-22 23:15 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50443
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Known to work| |4.6.2, 4.7.0
Resolution| |WORKSFORME
--- Comment #4 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-09-22 23:04:26 UTC ---
Ok.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-09-22 23:05 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-17 14:04 [Bug c++/50443] New: ICE when using brace-enclosed initializer for C-style array in constructor z0sh at sogetthis dot com
2011-09-17 21:20 ` [Bug c++/50443] " redi at gcc dot gnu.org
2011-09-17 21:33 ` redi at gcc dot gnu.org
2011-09-17 22:36 ` z0sh at sogetthis dot com
2011-09-22 23:15 ` paolo.carlini at oracle 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).