FreeBSD 14.0-CURRENT LLVM 16.0.6 powerpc64le, powerpc64, powerpc Reproducer: ```cpp template <class Compare> void stable_sort(int last, Compare) { stable_sort(last, int()); } #pragma STDC FENV_ACCESS ON struct cluster_result { int operator[](int); }; template <int> void generate_SciPy_dendrogram() { cluster_result Z2; int trans_tmp_1(0); int trans_tmp_2 = Z2[1]; stable_sort(trans_tmp_1, trans_tmp_2); } void linkage_wrap() { generate_SciPy_dendrogram<false>; } ``` Build with: ```shell /usr/bin/c++ -cc1 -triple powerpc-unknown-freebsd14.0 -emit-obj fastcluster_python-684654.cpp ``` Output: ```console Assertion failed: ((CGF.CurFuncDecl == nullptr || CGF.Builder.getIsFPConstrained() || isa<CXXConstructorDecl>(CGF.CurFuncDecl) || isa<CXXDestructorDecl>(CGF.CurFuncDecl) || (NewExceptionBehavior == llvm::fp::ebIgnore && NewRoundingBehavior == llvm::RoundingMode::NearestTiesToEven)) && "FPConstrained should be enabled on entire function"), function ConstructorHelper, file /usr/src/contrib/llvm-project/clang/lib/CodeGen/CodeGenFunction.cpp, line 165. ```