https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122071
Bug ID: 122071
Summary: <decimal/decimal> defines static functions at
namespace scope in header
Product: gcc
Version: 16.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: redi at gcc dot gnu.org
Target Milestone: ---
static decimal32 make_decimal32(long long __coeff, int __exp);
static decimal32 make_decimal32(unsigned long long __coeff, int __exp);
static decimal64 make_decimal64(long long __coeff, int __exp);
static decimal64 make_decimal64(unsigned long long __coeff, int __exp);
static decimal128 make_decimal128(long long __coeff, int __exp);
static decimal128 make_decimal128(unsigned long long __coeff, int __exp);
(defined in <decimal/decimal.h>)
Those should be inline (and maybe always_inline) but should have external
linkage, otherwise they'll cause ODR violations.