------- Comment #1 from jeidsath at gmail dot com  2007-11-21 22:45 -------
I apologize, a line was incorrectly cut from the copy and paste, here is the
full code that should not compile, but does:

#include <memory>
int main()
{
        class A
        {
                const std::auto_ptr<int> a;
        };
        A a;
        A b = a;
}


-- 


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

Reply via email to