[Bug ada/14997] ncurses build fails with Ada

2005-05-09 Thread ebotcazou at gcc dot gnu dot org

--- Additional Comments From ebotcazou at gcc dot gnu dot org  2005-05-09 
13:00 ---
Looking into it for AdaCore.


-- 
   What|Removed |Added

 AssignedTo|unassigned at gcc dot gnu   |ebotcazou at gcc dot gnu dot
   |dot org |org
 Status|NEW |ASSIGNED
   Last reconfirmed|2005-02-23 23:42:44 |2005-05-09 13:00:15
   date||


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


[Bug ada/14997] ncurses build fails with Ada

2005-03-30 Thread charlet at gcc dot gnu dot org

--- Additional Comments From charlet at gcc dot gnu dot org  2005-03-30 
09:12 ---
Here is a further simplification of the test case:

procedure PQ is

   subtype C_ULongis Interfaces.C.unsigned_long;
   typeC_Chtype   is new C_ULong;

   type Character_Attribute_Set is array (0 .. 47) of Boolean;
   pragma Pack (Character_Attribute_Set);
   
   type Attributed_Character is record
  Attr  : Character_Attribute_Set;
  Color : Character;
  Ch: Character;
   end record;
   pragma Convention (C, Attributed_Character);
   --  This is the counterpart for the chtype in C.
   
   for Attributed_Character use record
  Attr  at 0 range  0 .. 47;
  Color at 0 range 48 .. 55;
  Chat 0 range 56 .. 63;
   end record;
   for Attributed_Character'Size use 64;
   
   function Chtype_To_AttrChar is new
 Ada.Unchecked_Conversion (C_Chtype, Attributed_Character);
   
   X : constant C_Chtype := 0;
   Y : Character_Attribute_Set;
begin
   Y := Chtype_To_AttrChar (X).Attr;
end PQ;

The expected output of the compilation is:
gcc -c pq.adb
pq.adb:27:04: warning: types for unchecked conversion have different sizes

I assume the incorrect code in the ncurses Ada binding has been fixed in
the mean time. Anyway, GNAT should not ICE here.

Arno

-- 


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


[Bug ada/14997] ncurses build fails with Ada

2004-11-24 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2004-11-24 
19:32 ---
On the mainline I get a different ICE:
+===GNAT BUG 
DETECTED==+
| 4.0.0 20041121 (experimental) (powerpc-apple-darwin7.6.0) GCC error: |
| RTL flag check: MEM_VOLATILE_P used with unexpected rtx code |
|'const_int' in extract_fixed_bit_field, at expmed.c:1687  |
| Error detected at pq.adb:79:5|
| Please submit a bug report; see http://gcc.gnu.org/bugs.html.|
| 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).   |
+==
+

-- 


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