home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / gnu / g / bug / 2102 < prev    next >
Encoding:
Text File  |  1992-12-31  |  1.2 KB  |  36 lines

  1. Newsgroups: gnu.g++.bug
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!virginia.edu!gs4t
  3. From: gs4t@virginia.edu (Gnanasekaran  Swaminathan)
  4. Subject: Local type names bug in g++ 2.3.3
  5. Message-ID: <1992Dec30.203807.17504@murdoch.acc.Virginia.EDU>
  6. Sender: gnulists@ai.mit.edu
  7. Organization: University of Virginia
  8. References: <9212291829.AA00556@corrado.visix.com>
  9. Distribution: gnu
  10. Date: Wed, 30 Dec 1992 20:38:07 GMT
  11. Approved: bug-g++@prep.ai.mit.edu
  12. Lines: 22
  13.  
  14. g++ 2.3.3 accepts the code below without any problem.
  15. c++ -v -c tlocaltypes.cc
  16. gcc version 2.3.3
  17.  /home/gs4t/bin/lib/gcc-lib/sun4/2.3.3/cpp -lang-c++ -v -undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -Dsparc -Dsun -Dunix -D__sparc__ -D__sun__ -D__unix__ -D__sparc -D__sun -D__unix tlocaltypes.cc /usr/tmp/cca03002.i
  18. GNU CPP version 2.3.3 (sparc)
  19.  /home/gs4t/bin/lib/gcc-lib/sun4/2.3.3/cc1plus /usr/tmp/cca03002.i -quiet -dumpbase tlocaltypes.cc -version -o /usr/tmp/cca03002.s
  20. GNU C++ version 2.3.3 (sparc) compiled by GNU C version 2.2.2.
  21.  as -o tlocaltypes.o /usr/tmp/cca03002.s
  22.  
  23. Compilation finished at Wed Dec 30 15:23:30
  24.  
  25. typedef char* T;
  26.  
  27. struct Y {
  28.     T a;
  29.     typedef long T; // error. See ARM p189-191 for details
  30.     T b;
  31. };
  32.  
  33.  
  34. Is anybody working on the name hiding bugs of g++?
  35.  
  36.