Comment 1 for bug 1882520

Revision history for this message
Dirk Zimoch (dirk.zimoch) wrote :

The problem is in dbStaticLib.c line 2334 (dbParseLink):

    /* Link may be an array constant */
    if (pstr[0] == '[' && pstr[len-1] == ']' &&
        (strchr(pstr, ',') || strchr(pstr, '"'))) {
        pinfo->ltype = CONSTANT;
        return 0;
    }

This demands that arrays contain at least one comma or quote. So 1 element string arrays are ok but one element numeric arrays not? Why?

[42] and [] sould be are valid arrays.