Boost build broken due to recent C++ change?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Boost build broken due to recent C++ change?

Steve Ellcey-10
A recent g++ change (I haven't tracked down exactly which one, but in
the last day or two) seems to have broken my boost build.  It is dying
with lots of errors like:

./boost/intrusive/list.hpp:1448:7:   required from here
./boost/intrusive/detail/list_iterator.hpp:93:41: error: call of
overloaded 'get
_next(boost::intrusive::list_node<void*>*&)' is ambiguous
   93 |       node_ptr p = node_traits::get_next(members_.nodeptr_);
      |                    ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
In file included from ./boost/intrusive/list_hook.hpp:20,
                 from ./boost/intrusive/list.hpp:20,
                 from ./boost/fiber/context.hpp:29,
                 from libs/fiber/src/algo/algorithm.cpp:9:

Has anyone else run into this?  I will try to create a cutdown test
case.

Steve Ellcey
[hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: Boost build broken due to recent C++ change?

Marek Polacek-3
On Tue, Sep 24, 2019 at 10:16:27PM +0000, Steve Ellcey wrote:

> A recent g++ change (I haven't tracked down exactly which one, but in
> the last day or two) seems to have broken my boost build.  It is dying
> with lots of errors like:
>
> ./boost/intrusive/list.hpp:1448:7:   required from here
> ./boost/intrusive/detail/list_iterator.hpp:93:41: error: call of
> overloaded 'get
> _next(boost::intrusive::list_node<void*>*&)' is ambiguous
>    93 |       node_ptr p = node_traits::get_next(members_.nodeptr_);
>       |                    ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
> In file included from ./boost/intrusive/list_hook.hpp:20,
>                  from ./boost/intrusive/list.hpp:20,
>                  from ./boost/fiber/context.hpp:29,
>                  from libs/fiber/src/algo/algorithm.cpp:9:
>
> Has anyone else run into this?  I will try to create a cutdown test
> case.

I'm afraid this will be my

commit 5ac76b02008255b7f427e6309c2dc3e42bd64561
Author: mpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>
Date:   Mon Sep 23 17:37:54 2019 +0000

            PR c++/91844 - Implement CWG 2352, Similar types and reference binding.
            * call.c (reference_related_p): Use similar_type_p instead of
            same_type_p.
            (reference_compatible_p): Update implementation to match CWG 2352.
            * cp-tree.h (similar_type_p): Declare.
            * typeck.c (similar_type_p): New.

            * g++.dg/cpp0x/pr33930.C: Add dg-error.
            * g++.dg/cpp0x/ref-bind1.C: New test.
            * g++.dg/cpp0x/ref-bind2.C: New test.
            * g++.dg/cpp0x/ref-bind3.C: New test.
            * g++.old-deja/g++.pt/spec35.C: Remove dg-error.


    git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@276058 138bc75d-0d04-0410-961f-82ee72b054a4

Please open a bug.

Marek