home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / gnu / g / bug / 2320 < prev    next >
Encoding:
Text File  |  1993-01-25  |  1.2 KB  |  52 lines

  1. Path: 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
  2. From: hacrat@catfish.lcs.mit.edu (Nate Osgood)
  3. Newsgroups: gnu.g++.bug
  4. Subject: Bug using "new" when compiling with -fthis-is-variable
  5. Date: 25 Jan 1993 20:13:41 -0500
  6. Organization: MIT Laboratory for Computer Science
  7. Lines: 39
  8. Sender: daemon@cis.ohio-state.edu
  9. Approved: bug-g++@prep.ai.mit.edu
  10. Distribution: gnu
  11. Message-ID: <1993Jan23.193350.1865@mintaka.lcs.mit.edu>
  12.  
  13. Hi!   I'm compiling using g++ 2.3.3  (running on a Sun4
  14. under SunOS 4.1.3).  When I compile using the -fthis-is-variable flag,
  15. the following simple code causes an internal compiler error.  here's
  16. the code:
  17.  
  18. class foo
  19. {
  20.  public:
  21.   foo(int);
  22. };
  23.  
  24. main()
  25. {
  26.   foo *p;
  27.  
  28.   p = new foo(1);
  29. }
  30.  
  31.  
  32. and here's the error message:
  33.  
  34.  
  35. catfish % g++ -fthis-is-variable foo.C         
  36. foo.C: In function `int  main ()':
  37. foo.C:11: Internal compiler error.
  38. foo.C:11: Please report this to `bug-g++@prep.ai.mit.edu
  39.  
  40.  
  41. thanks!
  42.  
  43. nate
  44.  
  45.  
  46. -- 
  47. -------------------------------------------------------------------------------
  48. Nate Osgood            | ARPA: hacrat@catfish.lcs.mit.edu
  49. CS Graduate Student        | 
  50. MIT LCS Room NE43-636        | UUCP: ...!uunet!catfish.lcs.mit.edu!hacrat
  51.  
  52.