public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: brian@trellian.com To: gcc-gnats@gcc.gnu.org, debian-gcc@lists.debian.org Cc: brian@trellian.com Subject: c/5111: Misleading error message for "unsigned long double" Date: Thu, 13 Dec 2001 21:36:00 -0000 [thread overview] Message-ID: <E16EktQ-0004Et-00@btherl> (raw) >Number: 5111 >Category: c >Synopsis: Misleading error message for "unsigned long double" >Confidential: no >Severity: non-critical >Priority: low >Responsible: unassigned >State: open >Class: doc-bug >Submitter-Id: net >Arrival-Date: Thu Dec 13 21:36:00 PST 2001 >Closed-Date: >Last-Modified: >Originator: Brian Herlihy >Release: 3.0.3 20011209 (Debian prerelease) (Debian testing/unstable) >Organization: Me >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.. >Release-Note: >Audit-Trail: >Unformatted:
next reply other threads:[~2001-12-14 5:36 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2001-12-13 21:36 brian [this message] 2002-11-05 7:57 bangerth
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=E16EktQ-0004Et-00@btherl \ --to=brian@trellian.com \ --cc=debian-gcc@lists.debian.org \ --cc=gcc-gnats@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).