This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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;
};

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]