home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / amiga / programm / 18100 < prev    next >
Encoding:
Text File  |  1993-01-04  |  2.2 KB  |  64 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: sparky!uunet!gatech!concert!sas!mozart.unx.sas.com!walker
  3. From: walker@twix.unx.sas.com (Doug Walker)
  4. Subject: Re: A bug in SAS/C 6.0
  5. Originator: walker@twix.unx.sas.com
  6. Sender: news@unx.sas.com (Noter of Newsworthy Events)
  7. Message-ID: <C0C3E2.GIv@unx.sas.com>
  8. Date: Mon, 4 Jan 1993 14:39:37 GMT
  9. References:  <1i29gdINN2he@mirror.digex.com>
  10. Nntp-Posting-Host: twix.unx.sas.com
  11. Organization: SAS Institute Inc.
  12. Lines: 50
  13.  
  14.  
  15. In article <1i29gdINN2he@mirror.digex.com>, tstark@access.digex.com (Timothy M. Stark) writes:
  16. |>       I discovered that bug in the compiler. I implemented a few typedef
  17.  
  18. Yes, yes, it's ANOTHER compiler bug that turns out not to be a compiler
  19. bug.  Please don't accuse the compiler of having a bug until you know
  20. for sure what you're talking about.
  21.  
  22. |> #include <stdio.h>
  23. |> 
  24. |> typedef struct bug1 {
  25. |>        bug2  *bugb;
  26.           ^^^^
  27.           Here you are using a typedef before defining it.
  28.           This is illegal.
  29.  
  30. |> } bug1;
  31. |> 
  32. |> typedef struct bug2 {
  33. |>        bug1  *buga;
  34. |> } bug2;
  35. |> 
  36. |> 
  37. |> This program cause the compiler confusing and it displayed the strange
  38. |> message - Missing closed bracket (']'). I looked for the open bracket
  39. |> character but it is not in my program! 
  40.  
  41. The message is "Closing brace expected".  A brace is }, not ].  This occurs
  42. on the word "bug2" in the first structure definition, and is totally 
  43. correct since you haven't defined "bug2" to be anything at all yet.
  44.  
  45. |> I have SAS/C 6.1 patches here. I tried to patch them to my SAS/C 6.0 diskettes
  46. |> (backup diskettes) but they complaint that not enough memory in my Amiga
  47. |> computer ( 512K chip ram and 512K fast ram).
  48.  
  49. Really???  I'm surprised at that... how much memory do you have FREE when you
  50. try to install the patch?  Maybe you can do without some background programs
  51. or some resident programs long enough to install the patch.
  52.  
  53. |> -- Tim Stark
  54.  
  55. -- 
  56.   *****
  57. =*|_o_o|\\=====Doug Walker, Software Distiller====== BBS: (919)460-7430 =
  58.  *|. o.| ||                                          1200/2400/9600 Dual
  59.   | o  |//     For all you do, this bug's for you!
  60.   ====== 
  61. usenet: walker@unx.sas.com                            bix: djwalker 
  62. Any opinions expressed are mine, not those of SAS Institute, Inc.
  63.  
  64.