COMP: Gcc 11+ potential fix - see #2434

This commit is contained in:
Andrew Heather 2022-06-09 11:56:26 +01:00 committed by Mark Olesen
parent 1949a31efb
commit e93f3f6812

View File

@ -641,6 +641,10 @@ operator&(const Tensor<Cmpt>& t1, const Tensor<Cmpt>& t2)
template<class Cmpt>
#if defined(__GNUC__) && !defined(__clang__)
// Workaround for gcc (11+) that fails to handle tensor dot vector
__attribute__((optimize("no-tree-vectorize")))
#endif
inline typename innerProduct<Tensor<Cmpt>, Vector<Cmpt>>::type
operator&(const Tensor<Cmpt>& t, const Vector<Cmpt>& v)
{