https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91889

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |NEW
      Known to work|                            |9.2.0
            Summary|Boost does not build with   |[10 Regression] error: call
                   |top-of-tree GCC             |of overloaded
                   |                            |‘to_value_ptr(B*&)’ is
                   |                            |ambiguous
      Known to fail|                            |10.0

--- Comment #3 from Martin Liška <marxin at gcc dot gnu.org> ---
Reduced test-case:

template <typename U> struct A { typedef U *type; };
struct B {
  typedef A<B>::type node_ptr;
};
struct C {
  typedef B::node_ptr node_ptr;
  typedef A<const B>::type const_node_ptr;
};
struct {
  void to_value_ptr(C::node_ptr) {};
  void to_value_ptr(const C::const_node_ptr &);
} b;
C::node_ptr a;
void fn1() { b.to_value_ptr(a); }

Reply via email to