public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* preprocessor/2941: gcc/preprocessor bug
@ 2001-05-25  7:06 Rolf Schaeuble
  0 siblings, 0 replies; only message in thread
From: Rolf Schaeuble @ 2001-05-25  7:06 UTC (permalink / raw)
  To: gcc-gnats, debian-gcc

>Number:         2941
>Category:       preprocessor
>Synopsis:       gcc doens't use cpp properly ?!?
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri May 25 07:06:03 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Rolf Schaeuble
>Release:        3.0 20010426 (Debian prerelease) (Debian testing/unstable)
>Organization:
>Environment:
System: Linux c-l-003 2.4.4 #2 Fre Mai 11 17:04:56 CEST 2001 i686 unknown
Architecture: i686

	
host: i386-pc-linux-gnu
build: i386-pc-linux-gnu
target: i386-pc-linux-gnu
configured with: ../src/configure -v --enable-languages=c,c++,java,f77,proto,objc --prefix=/usr --infodir=/share/info --mandir=/share/man --enable-shared --with-gnu-as --with-gnu-ld --with-system-zlib --enable-long-long --enable-nls --without-x --without-included-gettext --disable-checking --enable-threads=posix --enable-java-gc=boehm --with-cpp-install-dir=bin --enable-objc-gc i386-linux
>Description:
	gcc's using of the preprocessor seems to be bugggy.
	See example code below.
>How-To-Repeat:
	Here's a small sample code:

	---
	#define CPACK1 #pragma pack(1)

	CPACK1

	int main()
	{
	}
	---
	This gives a error message (syntax error at '#' token).
	If I specify '-save-temps' on commandline, it works.
	If I preprocess this file, save the result, and then call g++ with it, it works too (without -save-temps).
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-05-25  7:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-05-25  7:06 preprocessor/2941: gcc/preprocessor bug Rolf Schaeuble

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).