Looking for advice on making a bug report

2 messages Options
Embed this post
Permalink
Chris Saunders-4

Looking for advice on making a bug report

Reply Threaded More More options
Print post
Permalink
This strikes me as a compiler bug but I'm not sure so please advise.  I have
a class that contains some functions that are interfaces to the Windows API
and here is one of the functions from that class:

 get_sid_sub_authority (p_sid: POINTER; n_sub_authority: NATURAL_32):
TYPED_POINTER [NATURAL_32]
   -- Returns a pointer to a specified subauthority in a security identifier
(SID). The subauthority value is a relative identifier (RID).
  external
   "C inline use <Windows.h>"
  alias
   "[
    return (PSID_IDENTIFIER_AUTHORITY)GetSidSubAuthority((PSID)$p_sid,
(DWORD)$n_sub_authority);
   ]"
  end

Now I have a function in another class that attempts to use the one above:

 sub_authority (sub_authority_number: NATURAL_32): TYPED_POINTER
[NATURAL_32]
   -- Pointer to a specified subauthority in a security identifier (SID).
   -- The subauthority value is a relative identifier (RID).
  do
   Result := c_sub_authority ({SID_FUNCTIONS}.get_sid_sub_authority (item,
sub_authority_number))
  end

When I attempt to compile this I get the error:

 2 VJAR: Source of assignment is not compatible with target.
SID.sub_authority (wel_file) 57, 4
  Error code: VJAR

Type error: source of assignment is not compatible with target.
What to do: make sure that type of source (right-hand side)
  is compatible with type of target.

Class: SID
Feature: sub_authority
Target name: Result
Target type: TYPED_POINTER [NATURAL_32]
Source type: POINTER
Line: 57
      do
->      Result := c_sub_authority ({SID_FUNCTIONS}.get_sid_sub_authority
(item, sub_authority_number))
      end

I could be wrong, but this error seems to me incorrect.  Should I make a bug
report on this?

Regards
Chris Saunders

Chris Saunders-4

Re: Looking for advice on making a bug report

Reply Threaded More More options
Print post
Permalink
Sorry, I made a dumb mistake but couldn't see it.

Regards
Chris Saunders

  ----- Original Message -----
  From: Chris Saunders
  To: Eiffel Software Mailing List
  Sent: Wednesday, October 07, 2009 5:50 PM
  Subject: [eiffel_software] Looking for advice on making a bug report


    This strikes me as a compiler bug but I'm not sure so please advise. I have
  a class that contains some functions that are interfaces to the Windows API
  and here is one of the functions from that class:

  get_sid_sub_authority (p_sid: POINTER; n_sub_authority: NATURAL_32):
  TYPED_POINTER [NATURAL_32]
  -- Returns a pointer to a specified subauthority in a security identifier
  (SID). The subauthority value is a relative identifier (RID).
  external
  "C inline use <Windows.h>"
  alias
  "[
  return (PSID_IDENTIFIER_AUTHORITY)GetSidSubAuthority((PSID)$p_sid,
  (DWORD)$n_sub_authority);
  ]"
  end

  Now I have a function in another class that attempts to use the one above:

  sub_authority (sub_authority_number: NATURAL_32): TYPED_POINTER
  [NATURAL_32]
  -- Pointer to a specified subauthority in a security identifier (SID).
  -- The subauthority value is a relative identifier (RID).
  do
  Result := c_sub_authority ({SID_FUNCTIONS}.get_sid_sub_authority (item,
  sub_authority_number))
  end

  When I attempt to compile this I get the error:

  2 VJAR: Source of assignment is not compatible with target.
  SID.sub_authority (wel_file) 57, 4
  Error code: VJAR

  Type error: source of assignment is not compatible with target.
  What to do: make sure that type of source (right-hand side)
  is compatible with type of target.

  Class: SID
  Feature: sub_authority
  Target name: Result
  Target type: TYPED_POINTER [NATURAL_32]
  Source type: POINTER
  Line: 57
  do
  -> Result := c_sub_authority ({SID_FUNCTIONS}.get_sid_sub_authority
  (item, sub_authority_number))
  end

  I could be wrong, but this error seems to me incorrect. Should I make a bug
  report on this?

  Regards
  Chris Saunders



 

[Non-text portions of this message have been removed]