public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/9442: false error: non-lvalue in unary `&'
@ 2003-01-26 12:16 rschiele
  0 siblings, 0 replies; 3+ messages in thread
From: rschiele @ 2003-01-26 12:16 UTC (permalink / raw)
  To: gcc-gnats


>Number:         9442
>Category:       c++
>Synopsis:       false error: non-lvalue in unary `&'
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          rejects-legal
>Submitter-Id:   net
>Arrival-Date:   Sun Jan 26 12:15:59 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Robert Schiele
>Release:        3.4 20030125 (experimental)
>Organization:
>Environment:
System: independent of system
Architecture: independent of architecture
host: independent of host
build: independent of build host
target: independent of target system
configured with: /home/schiele/gcccvs/gcc/configure --enable-threads=posix --prefix=/opt/Pkg/Linux/i686/gcc34 --enable-languages=c,c++,f77,objc --disable-libgcj --with-gxx-include-dir=/opt/Pkg/Linux/i686/gcc34/include/g++ --with-system-zlib --enable-shared --enable-__cxa_atexit i486-suse-linux
>Description:
The compiler does not compiler:

struct a {
    static const a b;
    a(int);
    operator int();
};

a c() {
    return 0 ? c() : a::b;
}

Instead it says:

# g++ -c test.ii
test.ii: In function `a c()':
test.ii:8: error: non-lvalue in unary `&'
#
>How-To-Repeat:
g++ -c test.ii
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


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

* Re: c++/9442: false error: non-lvalue in unary `&'
@ 2003-01-26 15:19 ehrhardt
  0 siblings, 0 replies; 3+ messages in thread
From: ehrhardt @ 2003-01-26 15:19 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, nobody, rschiele

Synopsis: false error: non-lvalue in unary `&'

State-Changed-From-To: open->closed
State-Changed-By: cae
State-Changed-When: Sun Jan 26 15:19:16 2003
State-Changed-Why:
    Duplicate of 9440.

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


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

* Re: c++/9442: false error: non-lvalue in unary `&'
@ 2003-01-26 15:06 Giovanni Bajo
  0 siblings, 0 replies; 3+ messages in thread
From: Giovanni Bajo @ 2003-01-26 15:06 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

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

From: "Giovanni Bajo" <giovannibajo@libero.it>
To: <gcc-gnats@gcc.gnu.org>,
	<gcc-bugs@gcc.gnu.org>,
	<nobody@gcc.gnu.org>,
	<gcc-prs@gcc.gnu.org>,
	<rschiele@uni-mannheim.de>
Cc:  
Subject: Re: c++/9442: false error: non-lvalue in unary `&'
Date: Sun, 26 Jan 2003 16:05:12 +0100

 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&p
 r=9442
 
 Duplicate of c++/9440
 
 Giovanni Bajo
 


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

end of thread, other threads:[~2003-01-26 15:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-26 12:16 c++/9442: false error: non-lvalue in unary `&' rschiele
2003-01-26 15:06 Giovanni Bajo
2003-01-26 15:19 ehrhardt

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