[11634] in Athena Bugs
rsaix 7.6H: xlc
daemon@ATHENA.MIT.EDU (Bruce R. Lewis)
Thu Jan 20 15:55:52 1994
To: bugs@MIT.EDU
Date: Thu, 20 Jan 94 15:55:46 EST
From: "Bruce R. Lewis" <brlewis@MIT.EDU>
System name: augmented
Type and version: POWER 7.6H (2 update(s) to same version)
Display type: graygda
What were you trying to do?
compile a .c file generated by compile_et
What's wrong:
It gives a bogus error:
"xti.c", line 36.40: 1506-126 (S) Expression must have a constant value.
The pertinent part of the .c file is,
static const char * const text[] = {
"No matches were found",
"Could not find string",
"Selected item is not a folder",
"Selected item is of unkown type",
"No filename specified",
"Not a numeric node ID",
"Invalid email address",
"sendmail returned nonzero status",
"No password specified",
0
};
static const struct error_table et = { text, 53191424L, 9 };
^
|
error reported here
What should have happened:
static char *[] is a constant value. xlc should act
appropriately.
Please describe any relevant documentation references:
From /mit/jfc/xlccmp2.fixinfo:
IBM AIX XL C Compiler/6000 Version 01.02.0001.0001:
IX33640 fixes all of the following problems:
...
- Address of a constant is a valid static initializer.
...