Bug 36764 - ICE with -gnatn inlining and stream attributes
Summary: ICE with -gnatn inlining and stream attributes
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: ada (show other bugs)
Version: 4.4.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-08 13:43 UTC by Duncan Sands
Modified: 2013-10-10 06:36 UTC (History)
2 users (show)

See Also:
Host: x86_64-linux-gnu
Target: x86_64-linux-gnu
Build: x86_64-linux-gnu
Known to work:
Known to fail:
Last reconfirmed: 2008-08-03 12:08:57


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Duncan Sands 2008-07-08 13:43:56 UTC
$ gcc -v
Using built-in specs.
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc.fsf.master/configure --prefix=/usr/local/gnat-fsf --enable-languages=ada,c,c++ --disable-bootstrap --disable-multilib --enable-checking
Thread model: posix
gcc version 4.4.0 20080630 (experimental) (GCC)
$ gcc -c -O2 -gnatn b.ads
+===========================GNAT BUG DETECTED==============================+
| 4.4.0 20080630 (experimental) (x86_64-unknown-linux-gnu) Assert_Failure einfo.adb:2439|
| Error detected at b.ads:1:6                                              |
| Please submit a bug report; see http://gcc.gnu.org/bugs.html.            |
| 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 gcc or gnatmake command that you entered.              |
| Also include sources listed below in gnatchop format                     |
| (concatenated together with no headers between files).                   |
+==========================================================================+

Please include these source files with error report
Note that list may not be accurate in some cases,
so please double check that the problem can still
be reproduced with the set of files listed.

b.ads
d.ads
c.ads
list may be incomplete
compilation abandoned

-- cut here --
with D;
package B is end;

with C;
procedure D is new C(Integer'Write);

with Ada.Streams;
generic
   with procedure Write_Type (
     Stream : not null access Ada.Streams.Root_Stream_Type'Class;
     Item   : Integer
   );
procedure C;
pragma Inline (C);
Comment 1 Samuel Tardieu 2008-08-03 12:08:57 UTC
Confirmed on SVN trunk:

+===========================GNAT BUG DETECTED==============================+
| 4.4.0 20080803 (experimental) (i686-pc-linux-gnu) Assert_Failure einfo.adb:2446|
| Error detected at b.ads:1:6                                              |
Comment 2 Duncan Sands 2013-10-10 06:36:28 UTC
This no longer crashes when using the gcc trunk.