Skip to content

Cannot compile with gcc 14 #89

Description

@rezahousseini

When compiling master or version 6.2.2604 with gcc 14 I get the error

/gnu/store/bl3qw29h2582k7hpifm90g508z838swc-gcc-14.3.0/include/c++/bits/shared_ptr.h:702:23: error: cannot convert from pointer to base class ‘ngstd::enable_shared_from_this_virtual_base’ to pointer to derived class ‘ngla::SparseCholesky<std::complex<double> >’ because the base is virtual
  702 |       return _Sp(__r, static_cast<typename _Sp::element_type*>(__r.get()));
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

which looks like a cast which is now considered unsafe in gcc 14.

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