🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++.help
Article #692

#pragma implementation

#692
From: Frederick Herrmann
Date: Fri, 22 Jan 1993 06:08
18 lines
1173 bytes
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
Technical Details
Message-ID: <1993Jan22.060851.21068@athena.mit.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!enterpoop.mit.edu!senator-bedfellow.mit.edu!bloom-picayune.mit.edu!fritz

Show Full Headers
Complete Article Headers
Newsgroups: gnu.g++.help
Path: arc1-ca.pugleaf.net!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