------- Comment #3 from rguenth at gcc dot gnu dot org  2009-08-13 08:42 -------
EDG rejects it as well:

t.C(12): error #453: protected function "foo::foo(int)" (declared at line 5) is
not accessible through a "foo" pointer or object
        new (this) foo(5);
                      ^

compilation aborted for t.C (code 2)


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


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

Reply via email to