Bugzilla – Full Text Bug Listing |
Summary: | variable length arrays are not standard-compliant | ||
---|---|---|---|
Product: | ns-3 | Reporter: | Quincy Tse <quincy.tse> |
Component: | examples | Assignee: | Flavio Kubota <kubota> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | mathieu.lacage, ns-bugs, tomh |
Priority: | P5 | ||
Version: | ns-3-dev | ||
Hardware: | All | ||
OS: | All | ||
Attachments: | Proposed patch. |
Description
Quincy Tse
2010-05-30 22:13:09 EDT
Further info - some compilers (clang, llvm-gcc) are unable to compile variable-length arrays due to their strict standards compliance. I'll submit a patch for consideration once I've run through the test.py. Created attachment 900 [details]
Proposed patch.
Moved the variable length array from stack to heap (patch uses new[]). Corresponding delete[] added at the end of code to free memory.
ok for me. I have applied as obvious. changeset changeset 231acc30d08f |