develooper Front page | perl.perl5.porters | Postings from May 2018

Re: [perl #133203] g++ 7.3 won't compile perl

Thread Previous | Thread Next
Dave Mitchell
May 16, 2018 12:43
Re: [perl #133203] g++ 7.3 won't compile perl
Message ID:
On Tue, May 15, 2018 at 05:12:20PM -0700, karl williamson (via RT) wrote:
> inline.h:20:5: note: in expansion of macro ‘PERL_ARGS_ASSERT_AV_TOP_INDEX’
> 	      ^
> 	 inline.h: In function ‘STRLEN S_sv_or_pv_pos_u2b(PerlInterpreter*, 
> SV*, const c har*, STRLEN, STRLEN*)’:
> 	*proto.h:4565:2: error: invalid static_cast from type ‘SV* {aka sv*}’ 
> to type ‘c*har’
> 	   assert(sv); assert(pv)
> If I redefine assert() to get past this, it fails later with things like
> sv.h:334:24: error: expression cannot be used as a function
> #define SvFLAGS(sv) (sv)->sv_flags
> Since it continues to compile with gcc 7.3, this is not a 5.28 blocker.

It builds ok for me with:

    $ g++ --version
    g++ (GCC) 7.3.1 20180303 (Red Hat 7.3.1-5)

A major Starfleet emergency breaks out near the Enterprise, but
fortunately some other ships in the area are able to deal with it to
everyone's satisfaction.
    -- Things That Never Happen in "Star Trek" #13

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About