Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/Compiler/C++    [ Add a report in this area ]  
Report #:  104018   Status: Open
F1004 Internal compiler error at 0xde803b0 with base 0xde00000
Project:  C++Builder Build #:  2007, ... XE2
Version:    16.4 Submitted By:   Patrik Lindahl
Report Type:  Crash / Data loss / Total failure Date Reported:  3/8/2012 1:17:12 AM
Severity:    Infrequently encountered problem Last Updated: 5/16/2012 12:49:18 AM
Platform:    All versions Internal Tracking #:   28163
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
I get an internal compiler error when initializing a struct with Now().
Steps to Reproduce:
Create a new console project and compile the following code:

#pragma hdrstop
#pragma argsused

#include <tchar.h>
#include <stdio.h>
#include <vcl.h>

int _tmain(int argc, _TCHAR* argv[])
{

struct STest

{


UINT A;


TDateTime B;

};

STest test = {0, Now()};


return 0;
}
Workarounds
None
Attachment
None
Comments

Tomohiro Takahashi at 3/8/2012 1:42:15 AM -
Is this a regression in XE2 Update 4?
What about previous versions of C++Builder?

Stewart Gaskell at 3/8/2012 5:51:10 AM -
It occurs on Builder 2007 - 11.0.2987.10779

Tomohiro Takahashi at 5/16/2012 2:49:45 AM -
This report was opened with valid Internal Tracking Number.
Thanks.

Eugene Seakg at 6/7/2012 8:44:29 PM -
Try it:

-----------------------------------
#pragma hdrstop
#pragma argsused

#include <tchar.h>
#include <stdio.h>
#include <vcl.h>

UINT getUint() { return 89; }

int _tmain(int argc, _TCHAR* argv[]) {
  struct STest
  {
    UINT A;
    TDateTime B;
  };
  TDateTime C = Now();
  STest test = {0, C};
  return 0;
}
-----------------------------------

Server Response from: ETNACODE01