public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ada/110314] New: Gnat failed assertion and Allocators with discriminant
@ 2023-06-19 19:50 franckbehaghel_gcc at protonmail dot com
  2023-06-20 16:43 ` [Bug ada/110314] " dkm at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: franckbehaghel_gcc at protonmail dot com @ 2023-06-19 19:50 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110314

            Bug ID: 110314
           Summary: Gnat failed assertion and Allocators with discriminant
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ada
          Assignee: unassigned at gcc dot gnu.org
          Reporter: franckbehaghel_gcc at protonmail dot com
                CC: dkm at gcc dot gnu.org
  Target Milestone: ---

With checks enabled, Gnat failed to build this file.

$ cat main_assertion_failed.adb 
with Ada.Containers.Synchronized_Queue_Interfaces;
with Ada.Containers.Unbounded_Synchronized_Queues;

procedure main is 

package  Queue_Interfaces  is new Ada.Containers.Synchronized_Queue_Interfaces
(Integer);
package Synchronized_Queues is new Ada.Containers.Unbounded_Synchronized_Queues
( Queue_Interfaces => Queue_Interfaces);
subtype Queue is Synchronized_Queues.Queue; 
type Access_Type is access all  Queue;

Q1 : Access_Type := new Queue;
Q2 : Access_Type := new Queue;

begin  
   null;
end Main;



$ gnatmake main_assertion_failed.adb 
gcc -c main_assertion_failed.adb
+===========================GNAT BUG DETECTED==============================+
| 14.0.0 20230617 (experimental) (aarch64-unknown-linux-gnu) Assert_Failure
nlists.adb:172|
| Error detected at main_assertion_failed.adb:12:21                        |
| Compiling main_assertion_failed.adb                                      |
| Please submit a bug report; see https://gcc.gnu.org/bugs/ .              |
| Use a subject line meaningful to you and us to track the bug.            |
| Include the entire contents of this bug box in the report.               |
| Include the exact command that you entered.                              |
| Also include sources listed below.                                       |
+==========================================================================+




It fails also with Compiler Explorer (https://godbolt.org/) 
+===========================GNAT BUG DETECTED==============================+
| 14.0.0 20230619 (experimental) (x86_64-linux-gnu) Assert_Failure
nlists.adb:172|
| Error detected at example.adb:12:21                                      |
| Compiling <source>                                               |
| Please submit a bug report; see https://gcc.gnu.org/bugs/ .              |
| Use a subject line meaningful to you and us to track the bug.            |
| Include the entire contents of this bug box in the report.               |
| Include the exact command that you entered.                              |
| Also include sources listed below.                                       |
+==========================================================================+


regards,

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-06-25 13:39 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-19 19:50 [Bug ada/110314] New: Gnat failed assertion and Allocators with discriminant franckbehaghel_gcc at protonmail dot com
2023-06-20 16:43 ` [Bug ada/110314] " dkm at gcc dot gnu.org
2023-06-20 16:49 ` dkm at gcc dot gnu.org
2023-06-20 20:28 ` franckbehaghel_gcc at protonmail dot com
2023-06-20 21:12 ` ebotcazou at gcc dot gnu.org
2023-06-25 13:37 ` franckbehaghel_gcc at protonmail dot com
2023-06-25 13:39 ` franckbehaghel_gcc at protonmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).