Steps to reproduce: Get ALS source from als-25.0w-20240506-162AE-src. Launch make: % make BUILD_MODE=prod ... gprbuild -m -j4 -XSUPERPROJECT= -P gnat/lsp_server.gpr -p -XBUILD_MODE=prod -XOS=osx -XLIBRARY_TYPE=relocatable -XXMLADA_BUILD=relocatable -XGPR_BUILD=relocatable \ -XVERSION= -XBUILD_DATE= lsp_server.gpr:28:09: warning: there are no sources of language "C++" in this project Compile ... [Ada] lsp-ada_execute_command.adb +===========================GNAT BUG DETECTED==============================+ | 13.2.0 (x86_64-apple-darwin21.6.0) GCC error: | | in gnat_to_gnu_entity, at ada/gcc-interface/decl.cc:475 | | Error detected at lsp-ada_execute_command.adb:88:13 Command : constant Command_Access := (if Tag = Ada.Tags.No_Tag then null else new LSP.Ada_Commands.Command'Class' (Create_Command (Tag, Params.arguments'Unrestricted_Access))); -- line 88 Compilation is correct if I change into: Command : Command_Access; ... if Tag = Ada.Tags.No_Tag then Command := null; else Command := new LSP.Ada_Commands.Command'Class' (Create_Command (Tag, Params.arguments'Unrestricted_Access)); end if;
See https://gcc.gnu.org/bugs/#gnat for instructions on how to report a bug.
After trying and several attempts to find a small reproducer, I'm afraid that I won't be able to provide better help than the ALS team could.
> After trying and several attempts to find a small reproducer, I'm afraid > that I won't be able to provide better help than the ALS team could. Note that a small reproducer is not mandatory, so it's usually just a matter of concatenating the sources files listed in the bug box, optionally compressing the result and attaching it to the PR.