/* ERROR: "initializer is not a constant" on line "{ foo[0] }" */
#include <stdio.h>
char const * const foo[1] =
{
"test"
};
struct
{
char const * const blah;
}
const moo[1] =
{
{ foo[0] }
};
int main(void)
{
printf("blahblahlbahla\n");
}
MSVC++2K5EB bug?
Alright, I've been trying to figure out why this code doesn't compile with MS Visual C++ 2005 Express Beta. According to #gamedev it should work fine.
Any ideas? I can work around it, but it'd be nice if this actually worked.
Note: I'm using C, not C++.
I'm running version 8.0.40607.16 (beta1.040607-1600) and that code compiles fine. Not that that's much help to you, sorry.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement