Hi
I'm not sure this is really a "problem" with imenu, but here are the details: 
https://github.com/company-mode/company-mode/issues/624

Thanks