🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Bug using "new" when compiling with -fthis-is-variable

#1408
From: Nate Osgood
Date: Tue, 26 Jan 1993 01:13
38 lines
1319 bytes
Hi!   I'm compiling using g++ 2.3.3  (running on a Sun4
under SunOS 4.1.3).  When I compile using the -fthis-is-variable flag,
the following simple code causes an internal compiler error.  here's
the code:

class foo
{
 public:
  foo(int);
};

main()
{
  foo *p;

  p = new foo(1);
}


and here's the error message:


catfish % g++ -fthis-is-variable foo.C         
foo.C: In function `int  main ()':
foo.C:11: Internal compiler error.
foo.C:11: Please report this to `bug-g++@prep.ai.mit.edu


thanks!

nate


-- 
-------------------------------------------------------------------------------
Nate Osgood			| ARPA: hacrat@catfish.lcs.mit.edu
CS Graduate Student		| 
MIT LCS Room NE43-636		| UUCP: ...!uunet!catfish.lcs.mit.edu!hacrat
Technical Details
Message-ID: <1993Jan23.193350.1865@mintaka.lcs.mit.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!paladin.american.edu!howland.reston.ans.net!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!cis.ohio-state.edu!catfish.lcs.mit.edu!hacrat

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!paladin.american.edu!howland.reston.ans.net!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!cis.ohio-state.edu!catfish.lcs.mit.edu!hacrat
From: hacrat@catfish.lcs.mit.edu (Nate Osgood)
Newsgroups: gnu.g++.bug
Subject: Bug using "new" when compiling with -fthis-is-variable
Date: 25 Jan 1993 20:13:41 -0500
Organization: MIT Laboratory for Computer Science
Lines: 39
Sender: daemon@cis.ohio-state.edu
Approved: bug-g++@prep.ai.mit.edu
Distribution: gnu
Message-ID: <1993Jan23.193350.1865@mintaka.lcs.mit.edu>