#27035 closed defect (duplicate)
giac fails to build (clang/clang++)
Reported by: | vdelecroix | Owned by: | |
---|---|---|---|
Priority: | critical | Milestone: | sage-duplicate/invalid/wontfix |
Component: | packages: standard | Keywords: | |
Cc: | Merged in: | ||
Authors: | Reviewers: | ||
Report Upstream: | N/A | Work issues: | |
Branch: | Commit: | ||
Dependencies: | Stopgaps: |
Description (last modified by )
duplicate of #25324
solve.cc:5751:23: error: non-constant-expression cannot be narrowed from type 'int' to 'short' in initializer list [-Wc++11-narrowing] order_t order_={order,lexvars}; ^~~~~ solve.cc:5751:23: note: insert an explicit cast to silence this issue order_t order_={order,lexvars}; ^~~~~ static_cast<short>( ) solve.cc:5751:29: error: non-constant-expression cannot be narrowed from type 'int' to 'unsigned char' in initializer list [-Wc++11-narrowing] order_t order_={order,lexvars}; ^~~~~~~ solve.cc:5751:29: note: insert an explicit cast to silence this issue order_t order_={order,lexvars}; ^~~~~~~ static_cast<unsigned char>( ) solve.cc:6962:21: error: non-constant-expression cannot be narrowed from type 'int' to 'short' in initializer list [-Wc++11-narrowing] order_t order_={order.val,0}; ^~~~~~~~~ solve.cc:6962:21: note: insert an explicit cast to silence this issue order_t order_={order.val,0}; ^~~~~~~~~ static_cast<short>( )
See also this message on sage-devel
Change History (4)
comment:1 Changed 2 years ago by
comment:2 Changed 2 years ago by
- Description modified (diff)
- Milestone changed from sage-8.6 to sage-duplicate/invalid/wontfix
- Status changed from new to needs_review
comment:3 Changed 2 years ago by
- Resolution set to duplicate
- Status changed from needs_review to closed
comment:4 Changed 2 years ago by
see #26315 for a tentative fix (with giac 1.5).
Note: See
TracTickets for help on using
tickets.
You need giac 1.5 on recent clangs. Please look up the giac upgrade ticket