[Bug c++/82360] tree check fail in get_inner_reference, at expr.c:6996

dcb314 at hotmail dot com gcc-bugzilla@gcc.gnu.org
Fri Sep 29 14:13:00 GMT 2017


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

--- Comment #2 from David Binderman <dcb314 at hotmail dot com> ---

Here is a possibly better example, that is legal C++ code:

class a {};
template <class> class b {
  b(b &&c) : d(static_cast<a &&>(c.d)) {}
  a d;
};


More information about the Gcc-bugs mailing list