Skip to content
Commit f35de48c authored by Chris Lattner's avatar Chris Lattner
Browse files

when compiling in a GNU mode (e.g. gnu99) treat VLAs with a size that can be folded to a constant

as constant size arrays.  This has slightly different semantics in some insane cases, but allows
us to accept some constructs that GCC does.  Continue to be pedantic in -std=c99 and other
modes.  This addressed rdar://8733881 - error "variable-sized object may not be initialized"; g++ accepts same code

llvm-svn: 132983
parent b5f19d9f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment