FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Compilation failure with gcc 6 · Issue #2874 · arrayfire/arrayfire · GitHub

Repository navigation

Compilation failure with gcc 6 #2874

Description

Hello
The master branch does not compile anymore with gcc6.1 under Linux:

In file included from repos/arrayfire/src/api/c/type_util.cpp:12:0:
repos/arrayfire/src/api/c/type_util.cpp: In function ‘size_t size_of(af_dtype)’:
repos/arrayfire/src/backend/common/err_common.hpp:160:62: error: use of deleted function ‘TypeError::TypeError(TypeError&&)’
type, boost::stacktrace::stacktrace());
^
repos/arrayfire/src/api/c/type_util.cpp:32:22: note: in expansion of macro ‘TYPE_ERROR’
default: TYPE_ERROR(1, type);
repos/arrayfire/src/backend/common/err_common.hpp:72:5: error: use of deleted function ‘AfError::AfError(AfError&&)’
repos/arrayfire/src/backend/common/err_common.hpp:44:5: note: ‘AfError::AfError(AfError&&) noexcept’ is implicitly deleted because its exception-specification does not match the implicit exception-specification ‘’
AfError(AfError&& other) noexcept = default;
^~~~~~~

Commenting out the move ctors
https://en.cppreference.com/w/cpp/language/move_constructor
in err_common.hpp resolves the issue even if, sure, not ideal.

Looks like the standard changed about default ctors:
https://stackoverflow.com/questions/29483120/program-with-noexcept-constructor-accepted-by-gcc-rejected-by-clang

Are you officially dropping gcc6 support ?
Kind
W.

Activity

  1. self-assigned this
    on May 6, 2020
  2. added this to the 3.7.2 milestone on May 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


    Back | FazBrowse Home | New Git URL