Bug 4488
Summary: | Bug in egcs when compiling a 2-dimensional array access | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | rross |
Component: | egcs | Assignee: | Nalin Dahyabhai <nalin> |
Status: | CLOSED NOTABUG | QA Contact: | |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 6.0 | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i386 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 1999-08-30 03:50:58 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
rross
1999-08-12 02:10:17 UTC
I cannot seem to be able to send a attachment to provide a sample of the code that exhibits the problem. If someone will e-mail me, I can reply with an attachment showing an example of the problem. Just reply to this message with test program included. Thanks. The declaration "char *Words[]" declares Words to be an array of pointers to char (note that it is not an array of arrays of char). Therefore the strings in the initializer " " are string constants (and thus readonly), not an initialized array of char (which would be read/write). If you want more explanation, go to comp.lang.c (or your favorite such source) - I realize that I'm not really offering a full explanation here. If you want to just get your code to work (without having to fix it), supply the -fwritable-strings option to gcc. |