🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #1641

CPP expands macro parameters with newlines wrong

#1641
From: Gisle Aas
Date: Sat, 23 Jan 1993 02:13
14 lines
870 bytes
------------------------------------
#define macro(a) a a a
macro(foo
bar)
------------------------------------
becomes when run though gcc -E:

foo
bar foobar foobar 

--
Gisle Aas               |  snail: Boks 114 Blindern, N-0314 Oslo, Norway
Norsk Regnesentral      |  X.400: G=Gisle;S=Aas;O=nr;P=uninett;C=no
voice: +47-2-453561     |  inet:  Gisle.Aas@nr.no
Technical Details
Message-ID: <AAS.93Jan22094820@rosmer.nr.no>
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!rosmer.nr.no!aas

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!rosmer.nr.no!aas
From: aas@rosmer.nr.no (Gisle Aas)
Newsgroups: gnu.gcc.bug
Subject: CPP expands macro parameters with newlines wrong
Date: 22 Jan 1993 21:13:23 -0500
Organization: Norwegian Computing Centre, Oslo, Norway
Lines: 16
Sender: daemon@cis.ohio-state.edu
Approved: bug-gcc@prep.ai.mit.edu
Distribution: gnu
Message-ID: <AAS.93Jan22094820@rosmer.nr.no>
Reply-To: Gisle.Aas@nr.no