http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47695

           Summary: [C++0X] Calling a deleted function fails twice
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P3
         Component: c++
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: g...@magfr.user.lysator.liu.se


Compiling the following:

--- test.C ---
void f() = delete;
void g() { f(); }
---- ---

triggers the errors:

test.C: In function 'void g()':
test.C:2:12: error: use of deleted function 'void f()'
test.C:1:6: error: declared here
test.C:2:14: error: use of deleted function 'void f()'
test.C:1:6: error: declared here

and I understand that the first set is due to me referring to the symbol and
the second set is due to me calling it but I think one set of error messages
would be enough here.

Reply via email to