Skip to content

C++20 compiler complaints #2437

@jimklimov

Description

@jimklimov

Probably the environment on AppVeyor CI got a newer baseline compiler? Currently at gcc (Rev2, Built by MSYS2 project) 14.1.0:

In file included from nutipc.cpp:43:
../include/nutipc.hpp:817:27: error: template-id not allowed for destructor in C++20 [-Werror=template-id-cdtor]
  817 | Signal::HandlerThread<H>::~HandlerThread<H>()
      |                           ^
../include/nutipc.hpp:817:27: note: remove the '< >'

UPDATE: Reconfirmed on Linux builds with explicit ./configure CXXFLAGS="-std=gnu++20 -Wno-system-headers -Wall -Wextra -Werror"

Metadata

Metadata

Assignees

No one assigned

    Labels

    C++WindowsportabilityWe want NUT to build and run everywhere possiblerefactor/fightwarnPR or issue proposal to improve code maintainability without functional changes, or to fix warnings

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions