c/6835: static struct assignment -> gcc internal error

dat01bjl@cs.lth.se dat01bjl@cs.lth.se
Mon May 27 07:56:00 GMT 2002


>Number:         6835
>Category:       c
>Synopsis:       static struct assignment -> gcc internal error
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    unassigned
>State:          open
>Class:          ice-on-illegal-code
>Submitter-Id:   net
>Arrival-Date:   Mon May 27 07:56:04 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Björn Lindberg
>Release:        gcc-3.0
>Organization:
>Environment:
Debian GNU / Linux, kernel 2.4.18, libc6 unstable, Athlon TB 1.2GHz
>Description:
Trying to compile the following: 
--- cut ---
# 1 "dt.error.c"
struct __container_t {
        int value;
        char name[];
};
typedef struct __container_t container_t;

struct __atrib_t {
        int value;
        int used, len;
        char *name;
        container_t options[];
};
typedef struct __atrib_t atrib_t;

atrib_t classifier = {0, 0, 2, "WillWait", {{0, "No"}, {1, "Yes"}}};

int main(){
}
--- cut ---

using: gcc -Wall -o dt.error dt.error.c -save-temps
(where dt.error.c is the source code that produces the error) 
gives the following: 
--- cut ---
dt.error.c:15: Internal error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
--- cut ---


>How-To-Repeat:
compile the code smippet with: gcc -Wall -o dt.error dt.error.c -save-temps
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the Gcc-bugs mailing list