home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / gnu / g / help / 1692 < prev    next >
Encoding:
Text File  |  1993-01-22  |  1.1 KB  |  34 lines

  1. Newsgroups: gnu.g++.help
  2. Path: sparky!uunet!stanford.edu!enterpoop.mit.edu!senator-bedfellow.mit.edu!bloom-picayune.mit.edu!fritz
  3. From: fritz@mtl.mit.edu (Frederick Herrmann)
  4. Subject: #pragma implementation
  5. Message-ID: <1993Jan22.060851.21068@athena.mit.edu>
  6. Sender: news@athena.mit.edu (News system)
  7. Nntp-Posting-Host: mtl.mit.edu
  8. Organization: MIT Microsystems Technology Laboratories
  9. Distribution: gnu
  10. Date: Fri, 22 Jan 1993 06:08:51 GMT
  11. Lines: 21
  12.  
  13. The message:
  14.          `#pragma implementation' can only appear at top-level
  15.  
  16. is generated if the #pragma appears after a #line.  That makes sense
  17. most of the time, but is causing me some problems now because I want to
  18. put the pragma in the declaration section of bison deck.  Bison puts a
  19. #line control right at the top of the file.
  20.  
  21. Of course, I can run bison -l and suppress all the #lines, but this
  22. makes the compiler messages more confusing.
  23.  
  24. Since bison already has all the #ifdef __cplusplus conditionals in the
  25. parser, I figured somebody might have run into this before and have a
  26. suggestion.  Other than this, bison output seems to work fine with
  27. c++.
  28.  
  29.                 - Fritz
  30.                   fritz@mtl.mit.edu
  31.  
  32.  
  33.  
  34.