[rt.cpan.org #58537] CAST in lvalue : compilation error under gcc 4.4.3

[email protected] ("Laurent Dami via RT")
Newsgroups perl.libwin32
Message-ID <[email protected]>
Sun Jun 20 03:57:56 2010: Request 58537 was acted upon.
Transaction: Ticket created by DAMI
       Queue: Win32API-Net
     Subject: CAST in lvalue : compilation error under gcc 4.4.3
   Broken in: 0.14
    Severity: Critical
       Owner: Nobody
  Requestors: [email protected]
      Status: new
 Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=58537 >


Win32API-Net fails to compile under gcc 4.4.3 (and hence under Strawberry 
Perl 5.12.1 beta)

The reason is that a type cast is not considered as an lvalue and 
therefore gcc won't accept an assignment to it.

The solution is to simply remove the (BYTE) typecasts on lvalues in 
HV_GET_AV definition (lines 593 and 595).
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.