Bug in juce_AudioProcessor.cpp (v5.02)


#1

line 687:

this won’t compile:
(I assume the jassert macro expands to more than one statement)

   #ifdef JUCE_DEBUG
    auto paramId = getParameterID (p->parameterIndex);
    for (auto q : managedParameters)
        jassert (q == nullptr || q == p || paramId != getParameterID (q->parameterIndex));
   #endif

to fix replace by this:

   #ifdef JUCE_DEBUG
    auto paramId = getParameterID (p->parameterIndex);
    for (auto q : managedParameters) {
        jassert(q == nullptr || q == p || paramId != getParameterID(q->parameterIndex));
    }
   #endif

5.0.2 projects have many errors
JUCE Assertion failure in juce_AudioProcessor.cpp:691
#2