Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/Compiler/Delphi/Header Generation    [ Add a report in this area ]  
Report #:  53994   Status: Open
defining an enumeration inside of a class will cause wrong header generation
Project:  C++Builder Build #:  10.0.2288.42451
Version:    10.0 Submitted By:   Thomas Koos
Report Type:  Basic functionality failure Date Reported:  10/26/2007 1:53:26 AM
Severity:    Serious / Highly visible problem Last Updated: 11/14/2007 11:51:56 AM
Platform:    All versions Internal Tracking #:  
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
Defining an enumeration inside of a delphi class like

type
  TTest = class
  public
    type
      TEnum = ( enFirst, enSecond, enThird );
  end;

will generate a defect header.
Steps to Reproduce:
1. define a delphi class containing an enumeration definition
2. create a static library containing the delphi file
3. create a c++ project using the lib and the generated header.
4. compile

see appended project for further information
Workarounds
None
Attachment
QC53994.zip
Comments

Thomas Koos at 11/12/2007 1:35:12 AM -
Still present in D2007 Update 3

Server Response from: ETNACODE01