------- Comment #4 from pinskia at gcc dot gnu dot org 2008-10-08 00:29 -------
Reduced testcase.
FILE 1:
struct dns_ctx {
int dnsc_serv[6];
unsigned dnsc_nserv;
};
struct dns_ctx dns_defctx;
int dns_add_serv(int t) {
struct dns_ctx *ctx = &dns_defctx;
ctx->dnsc_serv[t] = 0;
}
--- CUT ---
FILE 2:
extern struct dns_ctx dns_defctx;
--- CUT ---
Though I am still figuring out if this is valid code or not really,
dns_defctx's type is incomplete.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2008-10-08 00:29:07
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37756