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

           Summary: Use of deleted copy constructor not diagnosed
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: schaub.johan...@googlemail.com


The following program should be diagnosed at the call to "f" for using a
deleted copy constructor in an lvalue to rvalue conversion

struct A { 
  A() = default; 

private: 
  A(A const&) = default;
}; 

void f(...) { } 
int main() { 
  A a; 
  f(a); 
}

GCC compiles and links this code without complaining.

Reply via email to