This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Good morning. I'm having troubles with "initializer element is not constant". There is a way to make the compiler knows the second construct (*b) is also constant?
int main() { static const unsigned char a[]="aaa"; static const unsigned char *b="bbb";
static const foo f[]={ { a, }, { b, }, };
}
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |