This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: gcc shared library init problem (2nd try)
- To: Ralf Fassel <ralf at akutech dot de>
- Subject: Re: gcc shared library init problem (2nd try)
- From: Neil Booth <NeilB at earthling dot net>
- Date: Wed, 5 Jul 2000 23:11:37 +0900
- Cc: gcc-bugs at gcc dot gnu dot org
- References: <14684.39495.373125.985461@jupiter.akutech.de> <14691.14862.832200.507669@jupiter.akutech.de>
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.