https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68114
Bug ID: 68114
Summary: gcc doesn't show error when return type of deleted
function is incomplete
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: vanyacpp at gmail dot com
Target Milestone: ---
struct z;
z f() = delete; // should be an error here
As I understand, f is a function definition and return type of function
definition must be complete.
