Skip to content

Compile error with gcc 8 #2480

@elBoberido

Description

@elBoberido

Required information

Operating system:
Ubuntu 20.04 LTS

Compiler version:
GCC 8.4.0

Eclipse iceoryx version:
main branch

Observed result or behaviour:
A clear and precise description of the observed result.

iceoryx_hoofs/reporting/include/iox/assertions.hpp:83:26: error: call to non-'constexpr' function 'void iox::er::forwardPanic(const iox::er::SourceLocation&, Message&&) [with Message = const char (&)[50]]'
     iox::er::forwardPanic(IOX_CURRENT_SOURCE_LOCATION, "Reached code that was supposed to be unreachable.")
     ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     note: in expansion of macro 'IOX_UNREACHABLE'
     IOX_UNREACHABLE();
     ^~~~~~~~~~~~~~~

Expected result or behaviour:
no compile error

Conditions where it occurred / Performed steps:
Compiling with gcc 8, e.g. for CUDA

Additional helpful information

see also eclipse-iceoryx/iceoryx2#855

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions