Skip to content

Compiler error "missing-template-arg-list-after-template-kw" with new cern root release #148

Closed

Description

@AdrianMeyerAhrens

Hi Oleksii,

I am trying to compile the newest version (12427b9) but I get the error:

AnalysisTree/infra/Variable.hpp:74:41: error: a template argument list is expected after a name prefixed by the template keyword [-Wmissing-template-arg-list-after-template-kw]
      vars_.emplace_back(field.template GetValue(object));

However, this error only appears with the newest cern root release (6.40.02, https://root.cern.ch/releases/release-64002/ ). I switched back to version 6.36.14 and there it compiles fine. I am using Linux Mint 22.3 and compiling with gcc 13.3.0.

Cheers
Adrian

Activity

  1. lubynets commented on Jul 7, 2026

    @lubynets
    Contributor

    Hi @AdrianMeyerAhrens,
    thanks for letting me know about the problem!
    Try the fix implemented in this branch https://github.com/lubynets/AnalysisTree/tree/fix-template-func
    Oleksii

  2. AdrianMeyerAhrens commented on Jul 7, 2026

    @AdrianMeyerAhrens
    Author

    Hi Oleksii,
    yes, using that branch it works with both root versions which I tried (6.36.14 and 6.40.02)!

    Thanks for the quick fix
    Adrian

  3. lubynets commented on Jul 9, 2026

    @lubynets
    Contributor

    Fixed in PR #149

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions