This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/63944] [DR#413] Partial overriding of nonconstant struct/union initializers with designated initializers


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63944

--- Comment #1 from joseph at codesourcery dot com <joseph at codesourcery dot com> ---
Actually, I suppose the existing approach for strings could be used if 
desired - split the struct into a series of component references to a 
SAVE_EXPR of the nonconstant struct initializer (in the case of a union, 
the partially overriding initializer would say which union element needs 
splitting like that).  Whether that's desirable is another matter (say the 
struct being partially overridden is struct S { int a[1000000]; } - 
splitting into separate initializers would mean 1000000 SAVE_EXPRs, which 
seems unlikely to work well).


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]