Files
ports/misc
Dimitry Andric 29cdc0e4fa misc/mxnet: fix build with clang 19
Clang 19 now implements CWG 96 [1], which requires a template argument
list after a 'template' keyword, resulting in errors similar to:

  /wrkdirs/usr/ports/misc/mxnet/work/incubator-mxnet-1.9.1/src/api/operator/numpy/../../../operator/numpy/../tensor/./elemwise_binary_broadcast_op.h:358:18: error: a template argument list is expected after a name prefixed by the template keyword [-Wmissing-template-arg-list-after-template-kw]
    358 |         template LaunchEx(s, new_oshape.Size(), req[0], lstride, rstride, oshape,
        |                  ^
  /wrkdirs/usr/ports/misc/mxnet/work/incubator-mxnet-1.9.1/src/api/operator/numpy/../../../operator/numpy/../tensor/./elemwise_binary_broadcast_op.h:358:18: error: a template argument list is expected after a name prefixed by the template keyword [-Wmissing-template-arg-list-after-template-kw]
  /wrkdirs/usr/ports/misc/mxnet/work/incubator-mxnet-1.9.1/src/api/operator/numpy/../../../operator/numpy/../tensor/./elemwise_binary_broadcast_op.h:358:18: error: a template argument list is expected after a name prefixed by the template keyword [-Wmissing-template-arg-list-after-template-kw]
  /wrkdirs/usr/ports/misc/mxnet/work/incubator-mxnet-1.9.1/src/api/operator/numpy/../../../operator/numpy/../tensor/./elemwise_binary_broadcast_op.h:358:18: error: a template argument list is expected after a name prefixed by the template keyword [-Wmissing-template-arg-list-after-template-kw]
  /wrkdirs/usr/ports/misc/mxnet/work/incubator-mxnet-1.9.1/src/api/operator/numpy/../../../operator/numpy/../tensor/./elemwise_binary_broadcast_op.h:358:18: error: a template argument list is expected after a name prefixed by the template keyword [-Wmissing-template-arg-list-after-template-kw]
  /wrkdirs/usr/ports/misc/mxnet/work/incubator-mxnet-1.9.1/src/api/operator/numpy/../../../operator/numpy/../tensor/./elemwise_binary_broadcast_op.h:358:18: error: a template argument list is expected after a name prefixed by the template keyword [-Wmissing-template-arg-list-after-template-kw]
  /wrkdirs/usr/ports/misc/mxnet/work/incubator-mxnet-1.9.1/src/api/operator/numpy/../../../operator/numpy/../tensor/./elemwise_binary_broadcast_op.h:358:18: error: a template argument list is expected after a name prefixed by the template keyword [-Wmissing-template-arg-list-after-template-kw]
  /wrkdirs/usr/ports/misc/mxnet/work/incubator-mxnet-1.9.1/src/api/operator/numpy/../../../operator/numpy/../tensor/./elemwise_binary_broadcast_op.h:358:18: error: a template argument list is expected after a name prefixed by the template keyword [-Wmissing-template-arg-list-after-template-kw]
  /wrkdirs/usr/ports/misc/mxnet/work/incubator-mxnet-1.9.1/src/api/operator/numpy/../../../operator/numpy/../tensor/./elemwise_binary_broadcast_op.h:358:18: error: a template argument list is expected after a name prefixed by the template keyword [-Wmissing-template-arg-list-after-template-kw]
  /wrkdirs/usr/ports/misc/mxnet/work/incubator-mxnet-1.9.1/src/api/operator/numpy/../../../operator/numpy/../tensor/./elemwise_binary_broadcast_op.h:358:18: error: a template argument list is expected after a name prefixed by the template keyword [-Wmissing-template-arg-list-after-template-kw]
  /wrkdirs/usr/ports/misc/mxnet/work/incubator-mxnet-1.9.1/src/api/operator/numpy/../../../operator/numpy/../tensor/./elemwise_binary_broadcast_op.h:358:18: error: a template argument list is expected after a name prefixed by the template keyword [-Wmissing-template-arg-list-after-template-kw]
  /wrkdirs/usr/ports/misc/mxnet/work/incubator-mxnet-1.9.1/src/api/operator/numpy/../../../operator/numpy/../tensor/./elemwise_binary_broadcast_op.h:358:18: error: a template argument list is expected after a name prefixed by the template keyword [-Wmissing-template-arg-list-after-template-kw]
  /wrkdirs/usr/ports/misc/mxnet/work/incubator-mxnet-1.9.1/src/api/operator/numpy/../../../operator/numpy/../tensor/./elemwise_binary_broadcast_op.h:358:18: error: a template argument list is expected after a name prefixed by the template keyword [-Wmissing-template-arg-list-after-template-kw]
  /wrkdirs/usr/ports/misc/mxnet/work/incubator-mxnet-1.9.1/src/api/operator/numpy/../../../operator/numpy/../tensor/./elemwise_binary_broadcast_op.h:358:18: error: a template argument list is expected after a name prefixed by the template keyword [-Wmissing-template-arg-list-after-template-kw]
  /wrkdirs/usr/ports/misc/mxnet/work/incubator-mxnet-1.9.1/src/api/operator/numpy/../../../operator/numpy/../tensor/./elemwise_binary_broadcast_op.h:358:18: error: a template argument list is expected after a name prefixed by the template keyword [-Wmissing-template-arg-list-after-template-kw]
  /wrkdirs/usr/ports/misc/mxnet/work/incubator-mxnet-1.9.1/src/api/operator/numpy/../../../operator/numpy/../tensor/./elemwise_binary_broadcast_op.h:389:18: error: a template argument list is expected after a name prefixed by the template keyword [-Wmissing-template-arg-list-after-template-kw]
    389 |         template LaunchEx(s, new_oshape.Size(), req[0], lstride, rstride, oshape,
        |                  ^
  /wrkdirs/usr/ports/misc/mxnet/work/incubator-mxnet-1.9.1/src/api/operator/numpy/../../../operator/numpy/../tensor/./elemwise_binary_broadcast_op.h:389:18: error: a template argument list is expected after a name prefixed by the template keyword [-Wmissing-template-arg-list-after-template-kw]
  /wrkdirs/usr/ports/misc/mxnet/work/incubator-mxnet-1.9.1/src/api/operator/numpy/../../../operator/numpy/../tensor/./elemwise_binary_broadcast_op.h:389:18: error: a template argument list is expected after a name prefixed by the template keyword [-Wmissing-template-arg-list-after-template-kw]
  /wrkdirs/usr/ports/misc/mxnet/work/incubator-mxnet-1.9.1/src/api/operator/numpy/../../../operator/numpy/../tensor/./elemwise_binary_broadcast_op.h:389:18: error: a template argument list is expected after a name prefixed by the template keyword [-Wmissing-template-arg-list-after-template-kw]

In all these cases, appending "<>" is enough to satisfy the constraint.
This can be done with a REINPLACE_CMD in the post-patch phase.

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

PR:		282654
Approved by:	yuri (maintainer)
MFH:		2024Q4
2024-11-15 13:58:59 +01:00
..
2024-11-04 15:20:43 +01:00
2024-10-09 20:09:01 +02:00
2024-02-28 00:15:20 +03:00
2024-10-29 22:38:30 +08:00
2024-08-09 06:24:08 +00:00
2024-08-09 06:24:08 +00:00
2024-02-24 20:54:49 +01:00
2024-09-09 02:37:01 +08:00
2024-01-31 20:18:45 +03:00
2024-02-21 12:08:22 +01:00
2024-02-24 21:06:08 +01:00
2024-01-22 01:06:45 +01:00
2024-08-09 06:24:08 +00:00
2023-06-04 11:00:10 -07:00
2024-01-11 17:49:21 +01:00
2024-10-25 23:56:41 +08:00
2024-02-24 21:07:15 +01:00
2024-01-21 18:53:30 +01:00
2024-08-09 06:24:08 +00:00
2024-05-13 23:19:58 +02:00
2024-11-08 20:58:46 +00:00
2023-12-06 01:19:33 -08:00
2024-06-07 17:57:20 +03:00
2024-02-24 21:43:12 +01:00
2024-10-06 15:08:55 +03:00
2024-02-16 20:31:32 +01:00
2024-02-16 20:31:32 +01:00
2024-02-16 20:31:32 +01:00
2024-01-24 23:39:38 -08:00
2024-11-04 17:26:39 -08:00
2024-09-26 01:27:11 -07:00
2024-01-11 09:23:51 +01:00
2024-11-08 20:58:46 +00:00
2024-02-24 21:43:14 +01:00
2024-10-09 23:44:03 +00:00
2024-01-21 16:26:56 +01:00
2024-10-29 22:38:30 +08:00
2024-01-30 21:51:03 +01:00
2024-11-15 13:58:59 +01:00
2024-10-29 22:38:30 +08:00
2024-10-13 12:01:35 -07:00
2023-12-17 14:11:37 +01:00
2024-02-24 21:43:14 +01:00
2024-11-08 20:58:46 +00:00
2024-01-08 13:43:51 -03:00
2024-10-29 22:38:30 +08:00
2024-10-01 12:56:01 +02:00
2024-09-20 02:13:16 -07:00
2024-04-27 14:44:59 +02:00
2024-07-29 17:10:10 +02:00
2024-02-24 21:43:16 +01:00
2024-02-16 20:31:32 +01:00
2024-11-03 21:22:19 +08:00
2024-08-09 06:24:08 +00:00
2023-06-10 16:57:35 +02:00
2024-07-28 15:15:17 +02:00
2024-09-13 18:39:07 +02:00
2024-06-11 08:03:51 +03:00
2024-11-11 00:28:36 +00:00
2024-10-29 22:38:30 +08:00
2024-09-28 15:39:54 +02:00
2024-10-29 22:38:30 +08:00
2024-10-30 22:54:34 +08:00
2024-10-29 22:38:30 +08:00
2024-09-05 14:26:08 -04:00
2024-09-05 14:26:08 -04:00
2023-10-13 20:06:20 +02:00
2024-09-29 03:05:40 -04:00
2024-09-29 03:05:40 -04:00
2023-10-13 20:06:21 +02:00
2024-11-02 14:40:31 -07:00
2024-01-21 21:48:10 +01:00
2024-02-24 21:43:16 +01:00
2024-01-22 01:06:47 +01:00
2024-01-22 11:42:26 +01:00
2024-02-24 21:43:17 +01:00
2024-04-12 21:35:43 +02:00
2024-08-09 06:24:08 +00:00
2024-02-24 21:43:18 +01:00
2023-11-17 12:46:00 +01:00
2024-02-24 21:43:19 +01:00
2024-09-14 18:42:15 -04:00
2024-09-19 12:26:48 +02:00
2024-02-24 21:43:21 +01:00
2024-06-25 02:42:52 -07:00
2024-06-23 02:36:34 +00:00
2024-11-13 15:12:31 -08:00
2024-08-05 01:13:58 +08:00
2024-03-24 22:00:40 -07:00
2024-09-30 23:13:43 +01:00
2024-04-27 14:44:59 +02:00
2024-08-30 02:48:50 +02:00
2024-04-27 14:44:59 +02:00
2024-01-22 01:06:45 +01:00
2024-01-28 23:14:46 +01:00
2024-02-24 21:46:15 +01:00
2024-01-21 16:26:53 +01:00
2024-09-13 20:56:00 +00:00