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]

Re: gcc shared library init problem (2nd try)


Thanks for your bug report.

Ralf Fassel wrote:-

> struct s foo1 = {oneone};
> struct s foo2 = {twotwo};

twotwo is not a constant here, but a variable.  I imagine the author
of the code is thinking the linker should assign it before main() at
runtime.  I tend to think the compiler should give an error, or at
least a warning, by my (feeble) understanding of the C standard.

Neil.

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