public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ada/40936]  New: Assert_Failure atree.adb:884 on illegal code (mixture of protected object and accept of entry family)
@ 2009-08-01 22:47 ludovic at ludovic-brenta dot org
  2009-08-01 22:49 ` [Bug ada/40936] " ludovic at ludovic-brenta dot org
  2009-10-03 11:27 ` sam at gcc dot gnu dot org
  0 siblings, 2 replies; 6+ messages in thread
From: ludovic at ludovic-brenta dot org @ 2009-08-01 22:47 UTC (permalink / raw)
  To: gcc-bugs

(Debian bug #339356, which I realize was never forwarded upstream until now)

procedure gnat_bug is

   type voie is range 1..10;

   protected carrefour is
      entry entree_carrefour (voie);
   end carrefour;

   protected body carrefour is
      entry entree_carrefour (for v in voie)
      when true is
      begin
         accept entree_carrefour(v); -- remove this and you have a valid
program
      end entree_carrefour;
   end carrefour;

begin
   null;
end gnat_bug;

$ gnatmake gnat_bug.adb
gnatgcc -c gnat_bug.adb
+===========================GNAT BUG DETECTED==============================+
| 3.15p (Debian 3.15p-16) (i486-pc-linux-gnu) Assert_Failure atree.adb:678 |
| Error detected at gnat_bug.adb:13:10                                     |

+===========================GNAT BUG DETECTED==============================+
| 4.1.2 20061115 (prerelease) (Debian 4.1.1-22) (i486-pc-linux-gnu)        |
| Assert_Failure atree.adb:812                                             |
| Error detected at gnat_bug.adb:13:10                                     |

gcc-4.3 -c gnat_bug.adb
+===========================GNAT BUG DETECTED==============================+
| 4.3.2 (i486-pc-linux-gnu) Assert_Failure atree.adb:886                   |
| Error detected at gnat_bug.adb:13:10                                     |

gcc-4.4 -c gnat_bug.adb
+===========================GNAT BUG DETECTED==============================+
| 4.4.1 (i486-pc-linux-gnu) Assert_Failure atree.adb:884                   |
| Error detected at gnat_bug.adb:13:10                                     |


-- 
           Summary: Assert_Failure atree.adb:884 on illegal code (mixture of
                    protected object and accept of entry family)
           Product: gcc
           Version: 3.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ada
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ludovic at ludovic-brenta dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40936


^ permalink raw reply	[flat|nested] 6+ messages in thread
[parent not found: <bug-40936-4@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2014-08-13 15:37 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-01 22:47 [Bug ada/40936] New: Assert_Failure atree.adb:884 on illegal code (mixture of protected object and accept of entry family) ludovic at ludovic-brenta dot org
2009-08-01 22:49 ` [Bug ada/40936] " ludovic at ludovic-brenta dot org
2009-10-03 11:27 ` sam at gcc dot gnu dot org
     [not found] <bug-40936-4@http.gcc.gnu.org/bugzilla/>
2011-08-31 14:52 ` nicolas.boulenguez at free dot fr
2013-08-22 14:44 ` nicolas.boulenguez at free dot fr
2014-08-13 15:37 ` nicolas.boulenguez at free dot fr

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).