public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: craig@svensons.com
To: gcc-gnats@gcc.gnu.org
Subject: c/5646: ternary cannot be used as an lvalue
Date: Sat, 09 Feb 2002 14:46:00 -0000	[thread overview]
Message-ID: <20020209223738.3152.qmail@sources.redhat.com> (raw)


>Number:         5646
>Category:       c
>Synopsis:       ternary cannot be used as an lvalue
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Feb 09 14:46:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Craig Svenson
>Release:        gcc-3.0.3
>Organization:
>Environment:
powerpc-ibm-aix4.3.2.0
>Description:
I have tried using aix compiler version 3, 4, and 5 to compile decl.c. 
Every line that has this defined ternary as an lvalue fails to compile. 

#define current_binding_level                   \
  (cfun && cp_function_chain->bindings          \
   ? cp_function_chain->bindings                \
   : scope_chain->bindings)

cc -c  -DIN_GCC     -g   -DHAVE_CONFIG_H    -I. -Icp -I. -I./cp  -I./config -I./../include cp/decl.c -o cp/decl.o
"cp/decl.c", line 528.3: 1506-025 (S) Operand must be a modifiable lvalue.
"cp/decl.c", line 584.5: 1506-025 (S) Operand must be a modifiable lvalue.
"cp/decl.c", line 599.5: 1506-025 (S) Operand must be a modifiable lvalue.
"cp/decl.c", line 621.3: 1506-025 (S) Operand must be a modifiable lvalue.
"cp/decl.c", line 634.3: 1506-025 (S) Operand must be a modifiable lvalue.
"cp/decl.c", line 4294.7: 1506-025 (S) Operand must be a modifiable lvalue.
"cp/decl.c", line 4296.7: 1506-025 (S) Operand must be a modifiable lvalue.
"cp/decl.c", line 6405.3: 1506-025 (S) Operand must be a modifiable lvalue.
"cp/decl.c", line 9939.7: 1506-025 (S) Operand must be a modifiable lvalue.
"cp/decl.c", line 9942.7: 1506-025 (S) Operand must be a modifiable lvalue.
"cp/decl.c", line 13508.3: 1506-025 (S) Operand must be a modifiable lvalue.
make: 1254-004 The error code from the last command is 1.
>How-To-Repeat:

>Fix:
change this define to the following

#define current_binding_level                   \
  (*(cfun && cp_function_chain->bindings                \
   ? &cp_function_chain->bindings               \
   : &scope_chain->bindings))
>Release-Note:
>Audit-Trail:
>Unformatted:


             reply	other threads:[~2002-02-09 22:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-09 14:46 craig [this message]
2002-02-10  4:56 Graham Stott
2002-04-23  1:20 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=20020209223738.3152.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: link
Be 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).