Skip to content

Compilation of Test fails on gcc 8.2 #19

Open
@furkanusta

Description

@furkanusta

Hi, I am using g++ (GCC) 8.2.1 20181011 (Red Hat 8.2.1-4) on Fedora 28
I've tried to compile the library with default parameters on CMake and got the following error.
(I couldn't make the output prettier sorry about that)

include/boost/te.hpp: In instantiation of ‘constexpr boost::te::v1::poly<I, TStorage, TVtable>::poly(T&&, std::index_sequence<Ns ...>) [with T = Circle; T_ = Circle; long unsigned int ...Ns = {}; I = DrawableT<std::__cxx11::basic_stringstream >; TStorage = boost::te::v1::dynamic_storage; TVtable = boost::te::v1::static_vtable; std::index_sequence<Ns ...> = std::integer_sequence]’:

include/boost/te.hpp:223:68: required from ‘constexpr boost::te::v1::poly<I, TStorage, TVtable>::poly(T&&, TRequires) [with T = Circle; TRequires = boost::te::v1::detail::type_list; I = DrawableT<std::__cxx11::basic_stringstream >; TStorage = boost::te::v1::dynamic_storage; TVtable = boost::te::v1::static_vtable]’

include/boost/te.hpp:213:74: required from ‘constexpr boost::te::v1::poly<I, TStorage, TVtable>::poly(T&&) [with T = Circle; = void; I = DrawableT<std::__cxx11::basic_stringstream >; TStorage = boost::te::v1::dynamic_storage; TVtable = boost::te::v1::static_vtable]’

test.cpp:29:61: required from here
include/boost/te.hpp:231:33: error: static assertion failed
static_assert(sizeof...(Ns) > 0);
~~~~~~~~~~~~~~^~~

I've tried to make a minimal test case on godbolt but instead I got this: https://godbolt.org/z/bbxlXl which also fails on 8.2 (fine on 7.x) but gives a slightly different error message.

Since it compiles fine on both gcc 7.x and clang-trunk, I am not sure whether the problem is with the library or either of the compilers

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