From: SourceForge.net <no...@so...> - 2004-08-13 23:39:16
|
Bugs item #1009016, was opened at 2004-08-13 20:39 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=1009016&group_id=2435 Category: gcc Group: None Status: Open Resolution: None Priority: 5 Submitted By: Lucas Vignoli Reis (lucasvignoli) Assigned to: Danny Smith (dannysmith) Summary: unaccepted name for variable Initial Comment: Windows XP Professional gcc 3.3.1 (mingw special 20030804-1) ld 2.13.90 20030111 mingw 3.1.0-1 MSys 1.0.10 // obs: endereço is the portuguese word for address // i have this struct: typedef struct { U_CHAR high; // U_CHAR is defined as unsigned char U_CHAR medium; U_CHAR low; } ENDERECO; // and this declaration (global var) ENDERECO end; // and if i have something like this in any function ... end.high = 5; ... // it compiles great but when i run the program // it generates a SIGSEV segmentation fault // but if i change the name to 'end1' or else it starts working greatly // i tried to reproduce the bug with only what i've showed up to you, but i can't // i'm including allegro.h, stdio.h, and malloc.h // sorry if this turns out to be my problem, but i can't see how, anyway if it wasn't going to work there should be some compile error, shouldn't? // if you wan't my sources and my makefile, they're still pretty small i can send it, or else. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=1009016&group_id=2435 |