[cfe-dev] clang bug: constant array size is recognized as variable array size
Csaba Hruska
csaba.hruska at gmail.com
Fri May 23 03:17:58 PDT 2008
Hi!
It's me again ;)
I've found an another bug.
gcc accepts it, but clang thows this:
error: variable length array declared outside of any function
I'v compiled it with clang svn revision 51478.
code:
#define C1 100.
#define C2 120.
typedef struct
{
int A [(unsigned int)(C1*C2)];
} s_t;
Cheers,
Csaba
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20080523/c0f771d9/attachment.html>
More information about the cfe-dev
mailing list