develooper Front page | perl.perl5.porters | Postings from June 2014

[perl #120544] Visual C 6 C++ mode syntax errors in Perl_av_extend_guts about goto'ing around a var initialization

From:
Tony Cook via RT
Date:
June 23, 2014 06:13
Subject:
[perl #120544] Visual C 6 C++ mode syntax errors in Perl_av_extend_guts about goto'ing around a var initialization
Message ID:
rt-4.0.18-4071-1403503972-1039.120544-15-0@perl.org
On Sun Nov 17 20:51:40 2013, bulk88 wrote:
> ..\pp_ctl.c(125) : error C2446: ':' : no conversion from 'struct p5rx
> *(__cdecl
> *)(struct sv **const  ,int,struct op *,const struct regexp_engine
> *,struct p5rx
> *,char *,unsigned long,unsigned long)' to 'struct p5rx *(__cdecl
> *const )(struct
> sv **const  ,int,struct op *,const struct regexp_engine *,struct p5rx
> *volatile
> ,char *,unsigned long,unsigned long)'
> This conversion requires a reinterpret_cast, a C-style cast or
> function-
> style cast
> ..\pp_ctl.c(129) : error C2064: term does not evaluate to a function
> NMAKE : fatal error U1077: 'cl' : return code '0x2'

I suspect it's the volatime on th the p5rx parameter.

Which the compiler shouldn't consider part of the function type.

Tony


---
via perlbug:  queue: perl5 status: open
https://rt.perl.org/Ticket/Display.html?id=120544



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About