https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81527
--- Comment #4 from Wei-Wei Tu ---
(In reply to Jonathan Wakely from comment #3)
> I don't think the code is valid, copy/move constructors are not inherited.
> See PR 69853 for a similar bug report.
>
> *** This bug has been marked as a duplicat
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81527
Jonathan Wakely changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81527
--- Comment #2 from Wei-Wei Tu ---
> The above code is REJECTED by GCC 6.2.0 too.
==> Sorry for the mistake, The above code is ACCEPTED by GCC 6.2.0 too.
(In reply to Wei-Wei Tu from comment #1)
> Some additional information:
>
> The above code
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81527
--- Comment #1 from Wei-Wei Tu ---
Some additional information:
The above code is REJECTED by GCC 6.2.0 too.
But the below code is PASSED by GCC 6.1.0, 6.3.0, 6.4.0, 7.1.0. The only
difference is explicitly casting p's type to its own type.
//