https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117996
--- Comment #4 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-14 branch has been updated by Eric Botcazou <ebotca...@gcc.gnu.org>: https://gcc.gnu.org/g:d470d64b398684f510637fe8ada570fff92af841 commit r14-11083-gd470d64b398684f510637fe8ada570fff92af841 Author: Eric Botcazou <ebotca...@adacore.com> Date: Thu Dec 12 16:25:09 2024 +0100 Fix precondition failure with Ada.Numerics.Generic_Real_Arrays.Eigenvalues This fixes a precondition failure triggered when the Eigenvalues routine of Ada.Numerics.Generic_Real_Arrays is instantiated with -gnata, beause it calls Sort_Eigensystem on an empty vector. gcc/ada PR ada/117996 * libgnat/a-ngrear.adb (Jacobi): Remove default value for Compute_Vectors formal parameter. (Sort_Eigensystem): Add Compute_Vectors formal parameter. Do not modify the Vectors if Compute_Vectors is False. (Eigensystem): Pass True as Compute_Vectors to Sort_Eigensystem. (Eigenvalues): Pass False as Compute_Vectors to Sort_Eigensystem. gcc/testsuite * gnat.dg/matrix1.adb: New test.