Skip to content

Error when building with clang 19 #166

Closed
@yachoor

Description

@yachoor

It seems clang introduced a new error: missing-template-arg-list-after-template-kw resulting in build failures:

In file included from <source>:1:
In file included from /opt/compiler-explorer/libs/type_safe/trunk/include/type_safe/types.hpp:21:
/opt/compiler-explorer/libs/type_safe/trunk/include/type_safe/integer.hpp:193:41: error: a template argument list is expected after a name prefixed by the template keyword [-Wmissing-template-arg-list-after-template-kw]
  193 |         return integer(Policy::template do_multiplication(value_, integer_type(-1)));
      |                                         ^
/opt/compiler-explorer/libs/type_safe/trunk/include/type_safe/integer.hpp:200:35: error: a template argument list is expected after a name prefixed by the template keyword [-Wmissing-template-arg-list-after-template-kw]
  200 |         value_ = Policy::template do_addition(value_, integer_type(1));
      |                                   ^
/opt/compiler-explorer/libs/type_safe/trunk/include/type_safe/integer.hpp:216:35: error: a template argument list is expected after a name prefixed by the template keyword [-Wmissing-template-arg-list-after-template-kw]
  216 |         value_ = Policy::template do_subtraction(value_, integer_type(1));
      |                                   ^
3 errors generated.
Compiler returned: 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions