Log On
Embarcadero Home
Watch, Follow, &
Connect with Us
Share This
QualityCentral
Communities
Articles
Blogs
Resources
Downloads
Help
QualityCentral
Delphi-BCB
Compiler
Delphi
Anonymous Methods
BASM
Code Generation/Optimization
Error Recovery
Errors - Warnings
Exceptions
Execution
Finalization
Generics
Header Generation
Interaction with UI
Interfaces
Language
Linker
Make Logic
Memory Manager
OBJ Generation
OBJ Support
Other Compiler
Packages
RTTI
String Resources
TD Debug Info
Thread Local Storage
Version resilience
You are not logged in.
Help
Print
Public Report
Report From:
Delphi-BCB/Compiler/Delphi/Header Generation
[ Add a report in this area ]
Report #:
73546
Status:
Open
Private parameterless constructor causes ambiguity in header file
Project:
C++Builder
Build #:
12.0.3210.17555
Version:
12.1
Submitted By:
Moritz Beutel
Report Type:
Basic functionality failure
Date Reported:
5/1/2009 5:18:29 AM
Severity:
Serious / Highly visible problem
Last Updated:
3/20/2012 2:24:39 AM
Platform:
All versions
Internal Tracking #:
269269
Resolution:
Deferred to Next Rel
(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
The following code
// -----
unit qc73546;
interface
type
TFoo = class
private
constructor Create;
end;
implementation
constructor TFoo.Create;
begin
end;
end.
// -----
results in an invalid header file:
// -----
class PASCALIMPLEMENTATION TFoo : public System::TObject
{
typedef System::TObject inherited;
private:
__fastcall TFoo(void);
public:
/* TObject.Create */ inline __fastcall TFoo(void) : System::TObject() { }
/* TObject.Destroy */ inline __fastcall virtual ~TFoo(void) { }
};
// -----
Steps to Reproduce:
- Compile the following code (dcc32 -JPHN qc73546.pas):
// -----
unit qc73546;
interface
type
TFoo = class
private
constructor Create;
end;
implementation
constructor TFoo.Create;
begin
end;
end.
// -----
- Run the resulting header file through BCC (bcc32 -c -P qc73546.hpp).
Exp.: compiles
Act.:
Error E2238 qc73546.hpp 31: Multiple declaration for '_fastcall TFoo::TFoo()'
Error E2344 qc73546.hpp 29: Earlier declaration of '_fastcall TFoo::TFoo()'
Workarounds
None
Attachment
qc73546.zip
Comments
None
View Your Reports
Search
Server Response from: ETNACODE01
Developer Tools
Blackfish SQL
C++Builder
Delphi
FireMonkey
Prism
InterBase
JBuilder
J Optimizer
HTML5 Builder
3rdRail & TurboRuby
Database Tools
Change Manager
DBArtisan
DB Optimizer
ER/Studio
Performance Center
Rapid SQL
Technical Articles
Tutorials
White Papers
Press Releases
Newsletters
Add Content (GetPublished)
Audio
Audio & Video
Video
Bugs & Suggestions (QualityCentral)
Discussion Forums
Examples (CodeCentral)
Tags
Technology Partners
Downloads
Free Trials
Registered User Downloads
Beta Programs
Add Content (GetPublished)
Articles
Blogs
Bugs & Suggestions (QualityCentral)
Discussion Forums
Examples (CodeCentral)
Member Services
About
Connect with Us