Steve Dower added the comment:

Not sure how helpful this is, but the following code compiles fine for me (VC 
12.0 and 14.0):

#include <stdio.h>

char myStr[];
struct { char* a; } myStruct = { myStr };

int main() {
    printf("%s", myStruct.a);
    return 0;
}

static char myStr[] = "123456789";

Any reason you can't define the forward definition like this? (It only seems to 
work with myStr[] and not *myStr, for some reason.)

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue20323>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to