Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/Compiler/C++    [ Add a report in this area ]  
Report #:  127440   Status: Open
BCB64 internal error - [bcc64 Error] Unit2.cpp(1): ICE: Internal compiler error: C0000005 @ 68F28CFD
Project:  C++Builder Build #:  21.0.17017.3725
Version:    21.0 Submitted By:   Gordon Li
Report Type:  Crash / Data loss / Total failure Date Reported:  9/9/2014 12:29:13 AM
Severity:    Critical / Show Stopper Last Updated: 9/9/2014 7:24:11 PM
Platform:    All versions Internal Tracking #:   54953
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
BCB64 internal error - [bcc64 Error] Unit2.cpp(1): ICE: Internal compiler error: C0000005 @ 68F28CFD
Steps to Reproduce:
Please compile the attached simple C++ project,

1. Win32 compiler can compile it correctly
2. Win64 compiler will generate an internal compiler error
    [bcc64 Error] Unit2.cpp(1): ICE: Internal compiler error: C0000005 @ 68F28CFD

[Unit2.cpp]
----------
#pragma hdrstop

#include "Unit2.h"
#pragma package(smart_init)

String TMyClass::MyFunc(const wchar_t *fmt, ...)
{
  String s;
  return s;
}
----------
[Unit2.h]
----------
#ifndef Unit2H
#define Unit2H

#include <System.Classes.hpp>

class TMyClass
{
public:
  String MyFunc(const wchar_t *fmt, ...);
};

#endif
----------
Workarounds
None
Attachment
bcb64error.zip
Comments

None

Server Response from: ETNACODE01