public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/39109]  New: [4.4 Regression] Accessible constructor required for new
@ 2009-02-05 15:10 jakub at gcc dot gnu dot org
  2009-02-05 15:11 ` [Bug c++/39109] " jakub at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: jakub at gcc dot gnu dot org @ 2009-02-05 15:10 UTC (permalink / raw)
  To: gcc-bugs

struct N
{
  private:
    virtual ~N ();
};

N *
foo ()
{
  return new N ();
}

used to compile until http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=138355
Does it really need to have an accessible destructor if it is never deleted?
Dodji cited [basic.life]/4 which could mean this is valid.
Distilled from thunderbird.


-- 
           Summary: [4.4 Regression] Accessible constructor required for new
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jakub at gcc dot gnu dot org


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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-02-09 22:10 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-05 15:10 [Bug c++/39109] New: [4.4 Regression] Accessible constructor required for new jakub at gcc dot gnu dot org
2009-02-05 15:11 ` [Bug c++/39109] " jakub at gcc dot gnu dot org
2009-02-05 22:09 ` rguenth at gcc dot gnu dot org
2009-02-07  4:23 ` jason at gcc dot gnu dot org
2009-02-09 21:46 ` jason at gcc dot gnu dot org
2009-02-09 22:10 ` jakub at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).