public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c/5646: ternary cannot be used as an lvalue
@ 2002-02-10  4:56 Graham Stott
  0 siblings, 0 replies; 3+ messages in thread
From: Graham Stott @ 2002-02-10  4:56 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR c/5646; it has been noted by GNATS.

From: Graham Stott <grahams@redhat.com>
To: craig@svensons.com
Cc: gcc-gnats@gcc.gnu.org
Subject: Re: c/5646: ternary cannot be used as an lvalue
Date: Sun, 10 Feb 2002 12:49:56 +0000

 Craig,
 
 This is not a bug pls read the installation instructions.
 
 You must use "make bootstrap".
 
 Graham


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: c/5646: ternary cannot be used as an lvalue
@ 2002-04-23  1:20 rth
  0 siblings, 0 replies; 3+ messages in thread
From: rth @ 2002-04-23  1:20 UTC (permalink / raw)
  To: craig, gcc-bugs, gcc-prs, nobody

Synopsis: ternary cannot be used as an lvalue

State-Changed-From-To: open->closed
State-Changed-By: rth
State-Changed-When: Tue Apr 23 01:20:29 2002
State-Changed-Why:
    Use make bootstrap.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5646


^ permalink raw reply	[flat|nested] 3+ messages in thread

* c/5646: ternary cannot be used as an lvalue
@ 2002-02-09 14:46 craig
  0 siblings, 0 replies; 3+ messages in thread
From: craig @ 2002-02-09 14:46 UTC (permalink / raw)
  To: gcc-gnats


>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:


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-04-23  8:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-02-10  4:56 c/5646: ternary cannot be used as an lvalue Graham Stott
  -- strict thread matches above, loose matches on Subject: below --
2002-04-23  1:20 rth
2002-02-09 14:46 craig

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).