public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ada/37110]  New: Assert_Failure at atree.adb:886 caused by legal prefixed notation
@ 2008-08-13 10:29 ludovic at ludovic-brenta dot org
  2008-08-13 10:36 ` [Bug ada/37110] " charlet at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: ludovic at ludovic-brenta dot org @ 2008-08-13 10:29 UTC (permalink / raw)
  To: gcc-bugs

Subversion revision 127471 in GPS (http://libre.adacore.com/gps) introduced an
internal compiler error in codefix-text_manager.adb:

gcc-4.3 -c -g -O2 -gnatafno -gnatVa -I- -gnatA
/home/lbrenta/src/debian/ram/gnat-gps-4.3~2008.08.09/codefix/src/codefix-text_manager.adb
+===========================GNAT BUG DETECTED==============================+
| 4.3.1 (x86_64-pc-linux-gnu) Assert_Failure atree.adb:886                 |
| Error detected at codefix-text_manager.adb:4145:34                       |

The source line in question is marked below:

   procedure Execute
     (This         : Add_Line_Cmd;
      Current_Text : in out Text_Navigator_Abstr'Class;
      Success      : in out Boolean)
   is
      Cursor : constant File_Cursor'Class :=
        Current_Text.Get_Current_Cursor (This.Position.all);
   begin
      Success := True;
      Current_Text.Get_File
        (This.Position.File_Name).Add_Line (Cursor, This.Line.all); -- line
4145
   end Execute;

Removing the prefixed notation as follows avoids the ICE:

      Get_File
        (Current_Text, This.Position.File_Name).Add_Line (Cursor,
This.Line.all);


-- 
           Summary: Assert_Failure at atree.adb:886 caused by legal prefixed
                    notation
           Product: gcc
           Version: 4.3.0
            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=37110


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

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

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-13 10:29 [Bug ada/37110] New: Assert_Failure at atree.adb:886 caused by legal prefixed notation ludovic at ludovic-brenta dot org
2008-08-13 10:36 ` [Bug ada/37110] " charlet at gcc dot gnu dot org
2008-08-18  9:50 ` sam at gcc dot gnu dot org
2009-03-08  9:10 ` ebotcazou at gcc dot gnu dot org
     [not found] <bug-37110-4@http.gcc.gnu.org/bugzilla/>
2011-09-02 21:15 ` nicolas.boulenguez at free dot fr
2011-09-03  3:24 ` nicolas.boulenguez at free dot fr
2011-09-05 19:56 ` ludovic@ludovic-brenta.org
2014-03-23 10:36 ` ebotcazou at gcc dot gnu.org
2014-08-13 15:39 ` 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).