[Bug 282827] math/libdivide: fix build with clang 19
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 18 Nov 2024 08:56:13 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=282827 Bug ID: 282827 Summary: math/libdivide: fix build with clang 19 Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: thierry@FreeBSD.org Reporter: dim@FreeBSD.org Flags: maintainer-feedback?(thierry@FreeBSD.org) Assignee: thierry@FreeBSD.org Clang 19 has become more strict about errors in member functions, which results in errors building math/libdivide: /wrkdirs/usr/ports/math/libdivide/work/libdivide-5.0/libdivide.h:3020:41: error: no member named 'denom' in 'divider<T, ALGO>' 3020 | return div.denom.magic == other.denom.magic && div.denom.more == other.denom.more; | ~~~~~ ^ /wrkdirs/usr/ports/math/libdivide/work/libdivide-5.0/libdivide.h:3020:80: error: no member named 'denom' in 'divider<T, ALGO>' 3020 | return div.denom.magic == other.denom.magic && div.denom.more == other.denom.more; | ~~~~~ ^ The member function `operator==()` should refer to `other.div.denom` instead. Upstream fixed this in https://github.com/ridiculousfish/libdivide/commit/fa020f3, so import it as a patch. -- You are receiving this mail because: You are the assignee for the bug.