Before when the overflow occurred an assertion was triggered. Now check whether the maximum has been reached and warn properly.
This patch fixes bug 33162 which is marked as 'duplicate' of bug 19607. The original part of bug 19607 is fixed by D63975.
This should probably go in FunctionTypeBitfields.