public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/55606] New: sorry, unimplemented: non-trivial designated initializers not supported
@ 2012-12-06 0:17 hjl.tools at gmail dot com
2012-12-06 0:21 ` [Bug c++/55606] " paolo.carlini at oracle dot com
` (8 more replies)
0 siblings, 9 replies; 10+ messages in thread
From: hjl.tools at gmail dot com @ 2012-12-06 0:17 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55606
Bug #: 55606
Summary: sorry, unimplemented: non-trivial designated
initializers not supported
Classification: Unclassified
Product: gcc
Version: 4.8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: hjl.tools@gmail.com
[hjl@gnu-6 build]$ cat x.c
struct foo {
char x[128];
unsigned* i;
};
struct foo x = {
i: 0
};
[hjl@gnu-6 build]$ gcc -S x.c
[hjl@gnu-6 build]$ g++ -S x.c
x.c:7:1: sorry, unimplemented: non-trivial designated initializers not
supported
[hjl@gnu-6 build]$
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/55606] sorry, unimplemented: non-trivial designated initializers not supported
2012-12-06 0:17 [Bug c++/55606] New: sorry, unimplemented: non-trivial designated initializers not supported hjl.tools at gmail dot com
@ 2012-12-06 0:21 ` paolo.carlini at oracle dot com
2012-12-06 0:29 ` hjl.tools at gmail dot com
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: paolo.carlini at oracle dot com @ 2012-12-06 0:21 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55606
--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-12-06 00:21:19 UTC ---
So? Do we have a plan of filing a PR for each sorry message?
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/55606] sorry, unimplemented: non-trivial designated initializers not supported
2012-12-06 0:17 [Bug c++/55606] New: sorry, unimplemented: non-trivial designated initializers not supported hjl.tools at gmail dot com
2012-12-06 0:21 ` [Bug c++/55606] " paolo.carlini at oracle dot com
@ 2012-12-06 0:29 ` hjl.tools at gmail dot com
2012-12-06 0:30 ` hjl.tools at gmail dot com
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: hjl.tools at gmail dot com @ 2012-12-06 0:29 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55606
--- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> 2012-12-06 00:29:07 UTC ---
why does
struct foo x = {
i: 0
};
work?
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/55606] sorry, unimplemented: non-trivial designated initializers not supported
2012-12-06 0:17 [Bug c++/55606] New: sorry, unimplemented: non-trivial designated initializers not supported hjl.tools at gmail dot com
2012-12-06 0:21 ` [Bug c++/55606] " paolo.carlini at oracle dot com
2012-12-06 0:29 ` hjl.tools at gmail dot com
@ 2012-12-06 0:30 ` hjl.tools at gmail dot com
2012-12-06 0:32 ` hjl.tools at gmail dot com
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: hjl.tools at gmail dot com @ 2012-12-06 0:30 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55606
--- Comment #3 from H.J. Lu <hjl.tools at gmail dot com> 2012-12-06 00:30:11 UTC ---
BTW, clang works fine:
[hjl@gnu-6 tmp]$ /opt/llvm.old/bin/clang -c i.c
i.c:6:5: warning: use of GNU old-style field designator extension
[-Wgnu-designator]
i: 0
^~
.i =
1 warning generated.
[hjl@gnu-6 tmp]$
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/55606] sorry, unimplemented: non-trivial designated initializers not supported
2012-12-06 0:17 [Bug c++/55606] New: sorry, unimplemented: non-trivial designated initializers not supported hjl.tools at gmail dot com
` (2 preceding siblings ...)
2012-12-06 0:30 ` hjl.tools at gmail dot com
@ 2012-12-06 0:32 ` hjl.tools at gmail dot com
2012-12-06 0:35 ` hjl.tools at gmail dot com
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: hjl.tools at gmail dot com @ 2012-12-06 0:32 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55606
--- Comment #4 from H.J. Lu <hjl.tools at gmail dot com> 2012-12-06 00:32:46 UTC ---
[hjl@gnu-6 tmp]$ cat i.cc
struct foo {
char x[128];
unsigned* i;
};
struct foo x = {
.i = 0
};
[hjl@gnu-6 tmp]$ /opt/llvm.old/bin/clang -c i.cc
[hjl@gnu-6 tmp]$ g++ -c i.cc
i.cc:7:1: sorry, unimplemented: non-trivial designated initializers not
supported
[hjl@gnu-6 tmp]$
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/55606] sorry, unimplemented: non-trivial designated initializers not supported
2012-12-06 0:17 [Bug c++/55606] New: sorry, unimplemented: non-trivial designated initializers not supported hjl.tools at gmail dot com
` (3 preceding siblings ...)
2012-12-06 0:32 ` hjl.tools at gmail dot com
@ 2012-12-06 0:35 ` hjl.tools at gmail dot com
2012-12-06 0:36 ` paolo.carlini at oracle dot com
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: hjl.tools at gmail dot com @ 2012-12-06 0:35 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55606
--- Comment #5 from H.J. Lu <hjl.tools at gmail dot com> 2012-12-06 00:35:38 UTC ---
This works:
[hjl@gnu-6 tmp]$ cat i.cc
struct foo {
char x[128];
unsigned* i;
};
struct foo x = {
"foo",
.i = 0
};
[hjl@gnu-6 tmp]$ g++ -c i.cc
[hjl@gnu-6 tmp]$
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/55606] sorry, unimplemented: non-trivial designated initializers not supported
2012-12-06 0:17 [Bug c++/55606] New: sorry, unimplemented: non-trivial designated initializers not supported hjl.tools at gmail dot com
` (4 preceding siblings ...)
2012-12-06 0:35 ` hjl.tools at gmail dot com
@ 2012-12-06 0:36 ` paolo.carlini at oracle dot com
2012-12-09 0:33 ` pinskia at gcc dot gnu.org
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: paolo.carlini at oracle dot com @ 2012-12-06 0:36 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55606
--- Comment #6 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-12-06 00:35:53 UTC ---
I'm not saying that some work should not be done, I'm saying that sorry message
normally correspond to *known* issues, we don't need PRs for those, more or
less by definition. But what can I tell you, if you like to have a PR for this,
let's have it.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/55606] sorry, unimplemented: non-trivial designated initializers not supported
2012-12-06 0:17 [Bug c++/55606] New: sorry, unimplemented: non-trivial designated initializers not supported hjl.tools at gmail dot com
` (5 preceding siblings ...)
2012-12-06 0:36 ` paolo.carlini at oracle dot com
@ 2012-12-09 0:33 ` pinskia at gcc dot gnu.org
2014-07-24 13:55 ` nightstrike at gmail dot com
2021-11-10 4:36 ` pinskia at gcc dot gnu.org
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu.org @ 2012-12-09 0:33 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55606
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |FIXME, rejects-valid
Status|UNCONFIRMED |NEW
Last reconfirmed| |2012-12-09
Ever Confirmed|0 |1
Known to fail| |4.2.3, 4.3.4, 4.4.5, 4.8.0
--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-12-09 00:33:13 UTC ---
Confirmed.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/55606] sorry, unimplemented: non-trivial designated initializers not supported
2012-12-06 0:17 [Bug c++/55606] New: sorry, unimplemented: non-trivial designated initializers not supported hjl.tools at gmail dot com
` (6 preceding siblings ...)
2012-12-09 0:33 ` pinskia at gcc dot gnu.org
@ 2014-07-24 13:55 ` nightstrike at gmail dot com
2021-11-10 4:36 ` pinskia at gcc dot gnu.org
8 siblings, 0 replies; 10+ messages in thread
From: nightstrike at gmail dot com @ 2014-07-24 13:55 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55606
nightstrike <nightstrike at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |nightstrike at gmail dot com
--- Comment #8 from nightstrike <nightstrike at gmail dot com> ---
This is being proposed for C++14:
https://groups.google.com/a/isocpp.org/forum/#!topic/std-proposals/IgDFqKjKlRs
http://htmlpreview.github.io/?https://raw.github.com/CTMacUser/multiarray-iso-proposal/master/designation-proposal.html
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/55606] sorry, unimplemented: non-trivial designated initializers not supported
2012-12-06 0:17 [Bug c++/55606] New: sorry, unimplemented: non-trivial designated initializers not supported hjl.tools at gmail dot com
` (7 preceding siblings ...)
2014-07-24 13:55 ` nightstrike at gmail dot com
@ 2021-11-10 4:36 ` pinskia at gcc dot gnu.org
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-11-10 4:36 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55606
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Target Milestone|--- |8.0
Resolution|--- |FIXED
--- Comment #13 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
C++20 added this support, G++ supports mixing styles by default but not out of
order. It was explicitly decided not support out of order.
So closing as fixed for GCC 8.
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2021-11-10 4:36 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-06 0:17 [Bug c++/55606] New: sorry, unimplemented: non-trivial designated initializers not supported hjl.tools at gmail dot com
2012-12-06 0:21 ` [Bug c++/55606] " paolo.carlini at oracle dot com
2012-12-06 0:29 ` hjl.tools at gmail dot com
2012-12-06 0:30 ` hjl.tools at gmail dot com
2012-12-06 0:32 ` hjl.tools at gmail dot com
2012-12-06 0:35 ` hjl.tools at gmail dot com
2012-12-06 0:36 ` paolo.carlini at oracle dot com
2012-12-09 0:33 ` pinskia at gcc dot gnu.org
2014-07-24 13:55 ` nightstrike at gmail dot com
2021-11-10 4:36 ` pinskia 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).