-
Notifications
You must be signed in to change notification settings - Fork 19
Closed
Description
paridecl.h has long rank(GEN x);, but there's also std::rank in C++11.
When
#include <string>
using namespace std;
is done in libsrc/eclib/parifact.h, std::rank is pulled in to the namespace with gcc 7.3. (doesn't happen with gcc 4.9)
This leads to a build failure,
<PREFIX>/include/pari/paridecl.h:1442:19: error: return type specified for deduction guide
long rank(GEN x);
^
<PREFIX>/include/pari/paridecl.h:1442:1: error: decl-specifier in declaration of deduction guide
long rank(GEN x);
^~~~
<PREFIX>/include/pari/paridecl.h:1442:19: error: 'long' or 'short' invalid for '__dguide_rank'
long rank(GEN x);
^
<PREFIX>/include/pari/paridecl.h:1442:9: error: deduction guide for 'std::rank< <template-parameter-1-1> >' must have trailing return type
long rank(GEN x);
cc @saraedum
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels