Skip to content

Bug: Inverted logic in ! __has_include(<version>) check causes compilation failure on compilers without <version> header #1158

@raitzjm

Description

@raitzjm

Bug Description

There's inverted logic in the !__has_include(<version>) check that causes compilation failures on compilers that don't have the C++20 <version> header.

Location

File: etl/profiles/determine_compiler_language_support.h
Around line 223

Current (Buggy) Code

#if !__has_include(<version>)
    #include <version>

Shouldn't it be like this instead?

#if __has_include(<version>)
    #include <version>

I am using the TI C2000 compiler with C++ 2003.

I am able to compile by removing the ! or commenting out the #include <version>.

Metadata

Metadata

Assignees

Labels

Type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions