Compiler inlining limit exceeded in constexpr constructor (GCC --param max-inline-insns-single)
I encountered a compiler issue when I was creating a Tensor
inside a MetaOperatorDef:
/builds/eclipse/aidge/aidge_core/include/aidge/data/Tensor.hpp:147:15: error: inlining failed in call to 'constexpr Aidge::Tensor::Tensor(Aidge::Array1D<T, SIZE_0>&&) [with T = float; long unsigned int SIZE_0 = 1]': --param max-inline-insns-single limit reached [-Werror=inline]
147 | constexpr Tensor(Array1D<T, SIZE_0> &&arr)
(see build)
This means that for the g++12 compiler, I've exceeded the inlining limit.
Edited by Houssem ROUIS