public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: craig@svensons.com To: gcc-gnats@gcc.gnu.org Subject: c/5647: ternary with bit value assignment as parameter Date: Sat, 09 Feb 2002 16:16:00 -0000 [thread overview] Message-ID: <20020210001102.22321.qmail@sources.redhat.com> (raw) >Number: 5647 >Category: c >Synopsis: ternary with bit value assignment as parameter >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Sat Feb 09 16:16:01 PST 2002 >Closed-Date: >Last-Modified: >Originator: Craig Svenson >Release: gcc-3.0.3 >Organization: >Environment: powerpc-ibm-aix4.3.2.0 AIX 'C' version 5.0 >Description: #define SET_BINFO_MARKED(NODE) (TREE_VIA_VIRTUAL(NODE)?SET_CLASSTYPE_MARKED(BINF O_TYPE(NODE)):(TREE_LANG_FLAG_0(NODE)=1)) "cp/pt.c", line 8370.9: 1506-226 (S) The ":" operator is not allowed between "void" and "unsigned int:1". make: 1254-004 The error code from the last command is 1. In the AIX 'C' compiler SET_BINFO_MARKED(NODE) assumes a reurn type of void. The ternary is returning unsigned int. >How-To-Repeat: >Fix: #define SET_BINFO_MARKED(NODE) (TREE_VIA_VIRTUAL(NODE)?SET_CLASSTYPE_MARKED(BINF O_TYPE(NODE)): (void) (TREE_LANG_FLAG_0(NODE)=1)) cast the assignment to void. This repairs many files where this macro is used. >Release-Note: >Audit-Trail: >Unformatted:
next reply other threads:[~2002-02-10 0:16 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2002-02-09 16:16 craig [this message] 2002-02-09 16:46 Andrew Pinski 2002-04-23 2:13 rth
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=20020210001102.22321.qmail@sources.redhat.com \ --to=craig@svensons.com \ --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).