<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On Apr 1, 2010, at 1:27 PM, 琬菁楊 wrote:</div><blockquote type="cite"><div class="gmail_quote"><div>int main()<br>{<br>  size_t size;<br>  size = fsize3(10); // fsize3 returns 13<br>  return 0;<br>}<br>And I found some information with clang about VLA<br>(<a href="http://clang.llvm.org/cxx_compatibility.html#vla" target="_blank">http://clang.llvm.org/cxx_compatibility.html#vla</a>)<br>

Does llvm/clang doesn't support sizeof is evaluated at run time??<br></div></div></blockquote></div><br><div><div>Yes, clang supports vlas as defined in C99 and sizeof can return a dynamic value.   C99 vlas cannot occur in structs though, and clang does not support them in structs.</div><div><br></div><div>-Chris</div></div></body></html>