🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++.bug
Article #541

private operator new bug

#541
From: jjc
Date: Tue, 24 Oct 1989 16:23
19 lines
640 bytes
On a Sun 3, OS 3.4, g++ 1.36.0- (Oct 17 version) gets a segmentation
violation on this:

typedef unsigned long size_t;

class A {
  void *operator new(size_t);
 public:
  A();
};

void foo()
{
  A *p = new A;
}

cfront 2.0 accepts it.

James Clark
Technical Details
Message-ID: <8910241623.AA07110@sugar-bombs.ai.mit.edu>
Path: arc1-ca.pugleaf.net!utzoo!telly!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!AI.MIT.EDU!jjc

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!telly!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!AI.MIT.EDU!jjc
From: jjc@AI.MIT.EDU
Newsgroups: gnu.g++.bug
Subject: private operator new bug
Message-ID: <8910241623.AA07110@sugar-bombs.ai.mit.edu>
Date: 24 Oct 89 16:23:11 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 19