https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70395
--- Comment #2 from Vladimír Vondruš ---
Forgot to add that if I default the move constructor/assignment, it also
compiles fine (as the error message suggests).
: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: mosra at centrum dot cz
Target Milestone: ---
I am getting an error when trying to compile the following snippet:
struct NonCopyable
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: mosra at centrum dot cz
Target Milestone: ---
The following code is compiled fine in both GCC 4.9.2 and Clang 3.6:
struct