Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Nov 2024 16:51:54 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 282949] math/dgl: fix build with clang 19
Message-ID:  <bug-282949-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D282949

            Bug ID: 282949
           Summary: math/dgl: 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: yuri@freebsd.org
          Reporter: dim@FreeBSD.org
          Assignee: yuri@freebsd.org
             Flags: maintainer-feedback?(yuri@freebsd.org)

Clang 19 now implements CWG 96 [1], which requires a template argument
list after a 'template' keyword, resulting in errors similar to:

=20
/wrkdirs/usr/ports/math/dgl/work/dgl-1.1.2/third_party/tensorpipe/third_par=
ty/libnop/include/nop/types/variant.h:241:30:
error: a template argument list is expected after a name prefixed by the
template keyword [-Wmissing-template-arg-list-after-template-kw]
    241 |     index_ =3D value_.template Construct(std::forward<Args>(args)=
...);
        |                              ^
=20
/wrkdirs/usr/ports/math/dgl/work/dgl-1.1.2/third_party/tensorpipe/third_par=
ty/libnop/include/nop/types/variant.h:258:26:
error: a template argument list is expected after a name prefixed by the
template keyword [-Wmissing-template-arg-list-after-template-kw]
    258 |     if (!value_.template Assign(TypeTag<T>{}, index_,
std::forward<U>(value))) {
        |                          ^
=20
/wrkdirs/usr/ports/math/dgl/work/dgl-1.1.2/third_party/tensorpipe/third_par=
ty/libnop/include/nop/types/variant.h:265:26:
error: a template argument list is expected after a name prefixed by the
template keyword [-Wmissing-template-arg-list-after-template-kw]
    265 |     if (!value_.template Assign(index_, std::forward<T>(value))) {
        |                          ^

In all these cases, appending "<>" is enough to satisfy the constraint.

[1] https://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#96

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-282949-7788>