Tennsy 4.1 Compilation error: designated initializers cannot be used with a non-aggregate type 'PIDController'

Hi all,
I have a compilation error while using Teensy 4.1
The same code works fine with the ESP32 and Arduino.
Has this happened to anyone else?
Thank you

// control algorithm parameters
// stabilisation pid
PIDController pid_stb{.P = 65, .I = 120, .D = 3, .ramp = 100000, .limit = 7};
// velocity pid
PIDController pid_vel{.P = 0.01, .I = 0.03, .D = 0, .ramp = 10000, .limit = _PI / 10};
// velocity control filtering
LowPassFilter lpf_pitch_cmd{.Tf = 0.07};
// low pass filters for user commands - throttle and steering
LowPassFilter lpf_throttle{.Tf = 0.5};
LowPassFilter lpf_steering{.Tf = 0.1};


36 | PIDController pid_stb{.P = 65, .I = 120, .D = 3, .ramp = 100000, .limit = 7};
| ^
error: designated initializers cannot be used with a non-aggregate type ‘PIDController’
error: no matching function for call to ‘PIDController::PIDController()’

It’s a c++ problem, the compiler doesn’t support initializer lists for classes with complex construction semantics, only for structs…

If you just initialize the fields one by one it will work

Great!
I will try that
Thank you