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

[perl #112786] build broken under clang++

From:
Father Chrysostomos via RT
Date:
May 24, 2012 01:36
Subject:
[perl #112786] build broken under clang++
Message ID:
rt-3.6.HEAD-7788-1337848569-1512.112786-15-0@perl.org
On Sun May 06 16:48:53 2012, craigberry wrote:
> clang++ seems to need only an extra set of parentheses to calm down
>    and let go of its anxieties:
> 
> % git diff
> diff --git a/sv.c b/sv.c
> index 3ac2fd8..1713977 100644
> --- a/sv.c
> +++ b/sv.c
> @@ -13966,7 +13966,7 @@ Perl_varname(pTHX_ const GV *const gv, const
>    char gvtype, PADOFFSET targ,
>         }
>      }
>      else {
> -       CV * const cv = gv ? (CV *)gv : find_runcv(NULL);
> +       CV * const cv = gv ? ((CV *)gv) : find_runcv(NULL);
>         SV *sv;
>         AV *av;
> 
> [snip]
> 
> IMO, something like this ought to go in for 5.16.0 because it is a
>    build failure, and clang++ is a compiler,[1] and someone not
>    knowing any better might try to compile Perl with it.
> 
> Those dozens or hundreds of you who actually use C++ at the day job
>    and/or know something about C++ parsing rules may want to chime in
>    about whether clang++ has gone slightly bonkers or is just living
>    out its identity as its own eccentric, hypersensitive C++ self.
> 
> [1]  Thanks to Apple's XCode, an increasingly ubiquitous one.
> 

Thank you.  Applied as ef5eb41.

-- 

Father Chrysostomos


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



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