Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/Compiler/C++/Front End/Language    [ Add a report in this area ]  
Report #:  66863   Status: Open
protected field not accessable from within class.
Project:  C++Builder Build #:  6001
Version:    12.0 Submitted By:   Chris Bruner
Report Type:  Basic functionality failure Date Reported:  9/16/2008 11:07:38 PM
Severity:    Commonly encountered problem Last Updated: 3/20/2012 2:24:39 AM
Platform:    32 Bit Internal Tracking #:   265329
Resolution: None (Resolution Comments) Resolved in Build: : None
Duplicate of:  None
Voting and Rating
Overall Rating: No Ratings Yet
0.00 out of 5
Total Votes: None
Description
From the Ogre library,

an enum defined within the protected section of the class cannot be seen from a struction also defined within the same class.
Steps to Reproduce:
class _OgreExport Compiler2Pass : public ScriptTranslatorAlloc
    
{



protected:




// BNF operation types



enum OperationType {otUNKNOWN, otRULE, otAND, otOR, otOPTIONAL,

otREPEAT, otDATA, otNOT_TEST, otINSERT_TOKEN, otEND};




/** structure used to build rule paths



*/


struct TokenRule


{



    
    OperationType operation;


    
    size_t tokenID;

            
    TokenRule(void) :
     operation(otUNKNOWN), tokenID(0) {}
            
    TokenRule(const OperationType ot, const size_t token)
                
: operation(ot), tokenID(token) {}

    };


[BCC32 Error] OgreCompiler2Pass.h(169): E2247 'Compiler2Pass::otUNKNOWN' is not accessible
Workarounds
None
Attachment
None
Comments

Fraser Ross at 9/27/2008 11:12:25 AM -
This is a duplicate of 60577.

Server Response from: ETNACODE01