Article View: gnu.g++.bug
Article #609Re: g++ parse error ? (g++.1.36.1-)
From: Doug Schmidt
Date: Tue, 21 Nov 1989 18:32
Date: Tue, 21 Nov 1989 18:32
34 lines
1434 bytes
1434 bytes
In article <504@tnosoes.UUCP>, tom@tnosoes (Tom Vijlbrief) writes:
>g++ cannot parse the following.
>
>Is this a compiler error or a C++ problem ?
>
>I want access to the global assignment operator.
>
>===============================opis.c=========
>class test {
>public:
> int i;
>
> operator=(int ii) { i= ii; }
> operator=(test& t) { this->::operator=(t);}
> // operator=(test& t) { *this ::operator= t;} // Fails also
>};
>
>main()
>{
> test a,b;
>
> a= b;
>}
Sounds like a C++ language feature. Here's what cfront sez:
"glob.c", line 6: error: member operator = undefined
Doug
--
schmidt@ics.uci.edu (ARPA) | Per me si va nella citta' dolente.
office: (714) 856-4043 | Per me si va nell'eterno dolore.
| Per me si va tra la perduta gente.
| Lasciate ogni speranza o voi ch'entrate.
Technical Details
Message-ID:
<1989Nov21.103225.6630@paris.ics.uci.edu>Path:
arc1-ca.pugleaf.net!utzoo!telly!ddsw1!lll-winken!brutus.cs.uiuc.edu!usc!ucla-cs!uci-ics!gatewayReferences:
<504@tnosoes.UUCP>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!telly!ddsw1!lll-winken!brutus.cs.uiuc.edu!usc!ucla-cs!uci-ics!gateway From: schmidt@glacier.ics.uci.edu (Doug Schmidt) Newsgroups: gnu.g++.bug Subject: Re: g++ parse error ? (g++.1.36.1-) Keywords: g++ Message-ID: <1989Nov21.103225.6630@paris.ics.uci.edu> Date: 21 Nov 89 18:32:26 GMT References: <504@tnosoes.UUCP> Reply-To: schmidt@glacier.ics.uci.edu (Doug Schmidt) Organization: University of California, Irvine - Dept of ICS Lines: 34 In-reply-to: tom@tnosoes.UUCP (Tom Vijlbrief)