[cfe-dev] clang fails assertion given function with >256 parameters
jgarvin at apple.com
Wed Oct 5 11:33:32 PDT 2011
The clang compiler currently fails an assertion when given a function with more than 256 arguments. This started happening in John McCall's commit r130671, which changed the representation of parameters to reduce memory usage. Specifically, the parameter index (FunctionScopeIndex changed to ParameterIndex in the ParmVarDecl class in Decl.h) was changed from 16 bits to 8 bits.
Changing it back to 16 bits is one obvious solution, but it would increase memory usage. What's the right thing to do here?
More information about the cfe-dev