cancel
Showing results for 
Search instead for 
Did you mean: 

#include <numeric> fails on 9-2020-q2-update [SOLVED]

Stepan Martinek
Associate III

There's a bug in <numeric> library in 9-2020-q2-update toolchain. It makes the project fail to compile just by adding `#include <numeric>` to it. I also tried making a fresh new empty project with only that library included and it also doesn't compile. New toolchain 10.3.1 doesn't seem to fail on that.

c:\st\stm32cubeide\plugins\...\include\c++\9.3.1\numeric:89:10: error: expected ')' before '__val'
   89 |      (_Tp __val)
      |      ~   ^~~~~~
      |          )

1 ACCEPTED SOLUTION

Accepted Solutions
Stepan Martinek
Associate III

I have figured it out. For some unknown reason I was missing `__abs_integral` in front of `(_Tp __val)` on line 89 of the file c++/9.3.1/numeric. It's OK now.

View solution in original post

2 REPLIES 2
TDK
Guru

I can't reproduce here. Compiles fine, no warning or error messages. Same 9-2020-q2-update toolchain.

If you feel a post has answered your question, please click "Accept as Solution".
Stepan Martinek
Associate III

I have figured it out. For some unknown reason I was missing `__abs_integral` in front of `(_Tp __val)` on line 89 of the file c++/9.3.1/numeric. It's OK now.