[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Misleading error message for "unsigned long double"



>Submitter-Id:	net
>Originator:	Brian Herlihy
>Organization:	Me
>Confidential:	no
>Synopsis:	Misleading error message for "unsigned long double"
>Severity:	non-critical
>Priority:	low
>Category:	c
>Class:		doc-bug
>Release:	3.0.3 20011209 (Debian prerelease) (Debian testing/unstable)
>Environment:
System: Linux btherl 2.4.16 #5 Mon Dec 3 10:34:12 EST 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-included-gettext --disable-checking --enable-threads=posix --enable-java-gc=boehm --with-cpp-install-dir=bin --enable-objc-gc i386-linux
>Description:
	Error message is misleading for illegal definition.  long doubles are
	allowed, although the error message implies that they are not.
>How-To-Repeat:
	cat > t.c
	unsigned long double fred;
	main () {}
	^D
	gcc-3.0 -o t t.c
>Fix:
	vi <file_with_error_message>  # :)
	The error message is:
	t.c:1: long, short, signed or unsigned invalid for `fred'
	which implies that all these qualifiers are invalid.  In fact,
	a long double is valid.  The error message for "unsigned short double"
	gives this information; it would be nice to have this message appear
	for "unsigned long double" as well.
	Believe it or not I found this because of code which had an unsigned
	long double in it that compiled in windows..



Reply to: