home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: gnu.g++.help
- Path: sparky!uunet!stanford.edu!enterpoop.mit.edu!senator-bedfellow.mit.edu!bloom-picayune.mit.edu!fritz
- From: fritz@mtl.mit.edu (Frederick Herrmann)
- Subject: #pragma implementation
- Message-ID: <1993Jan22.060851.21068@athena.mit.edu>
- Sender: news@athena.mit.edu (News system)
- Nntp-Posting-Host: mtl.mit.edu
- Organization: MIT Microsystems Technology Laboratories
- Distribution: gnu
- Date: Fri, 22 Jan 1993 06:08:51 GMT
- Lines: 21
-
- The message:
- `#pragma implementation' can only appear at top-level
-
- is generated if the #pragma appears after a #line. That makes sense
- most of the time, but is causing me some problems now because I want to
- put the pragma in the declaration section of bison deck. Bison puts a
- #line control right at the top of the file.
-
- Of course, I can run bison -l and suppress all the #lines, but this
- makes the compiler messages more confusing.
-
- Since bison already has all the #ifdef __cplusplus conditionals in the
- parser, I figured somebody might have run into this before and have a
- suggestion. Other than this, bison output seems to work fine with
- c++.
-
- - Fritz
- fritz@mtl.mit.edu
-
-
-
-