Skip to content

g++-6 -fpermissive errors #79

@rurban

Description

@rurban

It is a goal to compile perl with g++.
g++-6 adds stricter -fpermissive checks, which fail in Encode 2.87.
Maybe add more core-compatible warnings to Makefile.PL CCFLAGS:
-Wpointer-sign, -fpermissive, -Werror=declaration-after-statement

static const array forward declarations are illegal in C++, they need to be extern.
And we cannot just ask $Config{d_cplusplus} since you are allowed to override it via
perl Makefile.PL CC=g++-6.

Some -Wc++11-compat fixes are also missing.

I'll try to come up with PR, as I need it for cperl.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions