[Bug ada/38009] Assert_Failure sinfo.adb:1002

2015-12-05 Thread ebotcazou at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38009

Eric Botcazou  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 CC||ebotcazou at gcc dot gnu.org
 Resolution|--- |FIXED
   Target Milestone|--- |4.8.0

--- Comment #3 from Eric Botcazou  ---
assert_failure_sinfo_1002.adb:2:04: warning: variable "foo" is read but never
assigned
assert_failure_sinfo_1002.adb:3:04: warning: variable "bar" is read but never
assigned

[Bug ada/38009] Assert_Failure sinfo.adb:1002

2014-10-14 Thread sworley at chkno dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38009

--- Comment #2 from Scott Worley  ---
Update for 4.6.4:

$ gnatmake assert_failure_sinfo_1002.adb
gnatgcc -c assert_failure_sinfo_1002.adb
+===GNAT BUG DETECTED==+
| 4.6.4 (x86_64-pc-linux-gnu) Assert_Failure sinfo.adb:1061|
| Error detected at assert_failure_sinfo_1002.adb:11:10|
| 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.
Consider also -gnatd.n switch (see debug.adb).

/usr/lib64/gnat-gcc/x86_64-pc-linux-gnu/4.6/adainclude/system.ads
assert_failure_sinfo_1002.adb

compilation abandoned
gnatmake: "assert_failure_sinfo_1002.adb" compilation error



$ nl --body-numbering=all
/usr/src/debug/dev-lang/gnat-gcc-4.6.4/gcc-4.6.4/gcc/ada/sinfo.adb
...
  1056 function End_Span
  1057(N : Node_Id) return Uint is
  1058 begin
  1059pragma Assert (False
  1060  or else NT (N).Nkind = N_Case_Statement
  1061  or else NT (N).Nkind = N_If_Statement);
  1062return Uint5 (N);
  1063 end End_Span;
...


[Bug ada/38009] Assert_Failure sinfo.adb:1002

2008-11-04 Thread sworley at chkno dot net


--- Comment #1 from sworley at chkno dot net  2008-11-04 08:36 ---
Created an attachment (id=16622)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16622&action=view)
A source file that triggers the sinfo.adb:1002 assert failure


-- 


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