Watch, Follow, &
Connect with Us

Please visit our new home
community.embarcadero.com.

Public Report
Report From: Kylix/Compiler/C++/Front-end/Language/Other    [ Add a report in this area ]  
Report #:  92140   Status: Closed
(Pulled) Defining an operator for a class when the class declaration had no such operator gets an assertion failure:

class AA;
AA
Project:  Kylix Build #:  5.6
Version:    1.0 Submitted By:   QC<->Raid Replicator Account
Report Type:  Crash / Data loss / Total failure Date Reported:  8/28/2000 12:00:00 AM
Severity:    Infrequently encountered problem Last Updated: 3/20/2012 2:24:39 AM
Platform:    RedHat Linux Internal Tracking #:   90817
Resolution: Fixed (Resolution Comments) Resolved in Build: : 5.6
Duplicate of:  None
Voting and Rating
Overall Rating: No Ratings Yet
0.00 out of 5
Total Votes: None
Description
Defining an operator for a class when the class declaration had no such operator gets an assertion failure:

class AA;
AA *operator-> (){};
Steps to Reproduce:
bcc -c 90817.cpp
//res:
Error E2239 ./90817.cpp 2: 'operator ->()' must be a member function
Assertion failed ./90817.cpp(2) : param at ../../../bcc/indep/cppmangl.c(1147)

//exp: (from VC++)
90817.cpp(2) : error C2801: 'operator ->' must be a <Unknown> member
Workarounds
None
Attachment
N
Comments

None

Server Response from: ETNACODE01