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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55227
Andrew Pinski changed:
What|Removed |Added
CC||iDingDong at outlook dot com
---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55227
Will Wray changed:
What|Removed |Added
Attachment #51828|0 |1
is obsolete|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55227
Will Wray changed:
What|Removed |Added
Attachment #51737|0 |1
is obsolete|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55227
Andrew Pinski changed:
What|Removed |Added
Keywords||patch
URL|
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
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
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};
+
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?
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
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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55227
Szikra changed:
What|Removed |Added
CC||steven.spark at gmail dot com
--- Comment #5
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
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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55227
Martin Sebor changed:
What|Removed |Added
Keywords||rejects-valid
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55227
Daniel Krügler daniel.kruegler at googlemail dot com changed:
What|Removed |Added
CC|
16 matches
Mail list logo