[Bug c++/55227] designated initializer for char array by string constant

2022-01-23 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55227 --- Comment #16 from CVS Commits --- The master branch has been updated by Jason Merrill : https://gcc.gnu.org/g:2da90ad39bf8fa9ee287e040d1f4411cb7a2e7ed commit r12-6825-g2da90ad39bf8fa9ee287e040d1f4411cb7a2e7ed Author: Will Wray Date: Fri

[Bug c++/55227] designated initializer for char array by string constant

2021-12-13 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55227 Andrew Pinski changed: What|Removed |Added CC||iDingDong at outlook dot com ---

[Bug c++/55227] designated initializer for char array by string constant

2021-11-17 Thread wjwray at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55227 Will Wray changed: What|Removed |Added Attachment #51828|0 |1 is obsolete|

[Bug c++/55227] designated initializer for char array by string constant

2021-11-17 Thread wjwray at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55227 Will Wray changed: What|Removed |Added Attachment #51737|0 |1 is obsolete|

[Bug c++/55227] designated initializer for char array by string constant

2021-11-06 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55227 Andrew Pinski changed: What|Removed |Added Keywords||patch URL|

[Bug c++/55227] designated initializer for char array by string constant

2021-11-04 Thread wjwray at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55227 --- Comment #11 from Will Wray --- Created attachment 51737 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51737=edit Proposed patch Nov 4 Sent to gcc-patches for review https://gcc.gnu.org/pipermail/gcc-patches/2021-November/583379.html

[Bug c++/55227] designated initializer for char array by string constant

2021-10-25 Thread wjwray at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55227 --- Comment #10 from Will Wray --- Note that the initialization of 'c0' takes a different codepath: struct C {char a[2];}; C c0{.a="a"}; // [dcl.init.aggr] C c1{.a=""}; C c2{.a={"a"}}; C c3{.a={""}}; c1, c2 and

[Bug c++/55227] designated initializer for char array by string constant

2021-10-25 Thread wjwray at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55227 --- Comment #9 from Will Wray --- Adding a reshape_iter, and checking has_designator_problem, for a brace-enclosed string-literal fixes this secondary issue + reshape_iter e {CONSTRUCTOR_ELT (stripped_a_init, 0), e.cur + 1}; +

[Bug c++/55227] designated initializer for char array by string constant

2021-10-24 Thread wjwray at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55227 --- Comment #8 from Will Wray --- The patch above doesn't address the secondary issue, of ignored and unchecked nested designators: C b {{.bogus="b"}}; Perhaps reshape_init should be recursed into once more?

[Bug c++/55227] designated initializer for char array by string constant

2021-10-24 Thread wjwray at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55227 --- Comment #7 from Will Wray --- The patch below fixes the main issue (I think, checking) by adding first_initializer_p to the error condition it errors only where designators are not allowed. diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index

[Bug c++/55227] designated initializer for char array by string constant

2021-10-24 Thread wjwray at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55227 Will Wray changed: What|Removed |Added CC||wjwray at gmail dot com --- Comment #6 from

[Bug c++/55227] designated initializer for char array by string constant

2020-06-16 Thread steven.spark at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55227 Szikra changed: What|Removed |Added CC||steven.spark at gmail dot com --- Comment #5

[Bug c++/55227] designated initializer for char array by string constant

2020-04-08 Thread ensadc at mailnesia dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55227 ensadc at mailnesia dot com changed: What|Removed |Added CC||ensadc at mailnesia dot com

[Bug c++/55227] designated initializer for char array by string constant

2018-11-14 Thread jr at heisey dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55227 J.R. Heisey changed: What|Removed |Added CC||jr at heisey dot org --- Comment #3 from

[Bug c++/55227] designated initializer for char array by string constant

2016-01-14 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55227 Martin Sebor changed: What|Removed |Added Keywords||rejects-valid

[Bug c++/55227] designated initializer for char array by string constant

2012-11-07 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55227 Daniel Krügler daniel.kruegler at googlemail dot com changed: What|Removed |Added CC|