Watch, Follow, &
Connect with Us

Please visit our new home
community.embarcadero.com.

Public Report
Report From: Delphi-BCB/Compiler/C++    [ Add a report in this area ]  
Report #:  106324   Status: Reported
[Regression in XE2] Random "F1004 Internal compiler" error in the line #pragma hdrstop
Project:  C++Builder Build #:  16.0.4504.48759
Version:    16.4 Submitted By:   Alexis Laborda
Report Type:  Basic functionality failure Date Reported:  6/11/2012 6:43:49 AM
Severity:    Infrequently encountered problem Last Updated: 7/23/2012 9:17:15 AM
Platform:    All versions Internal Tracking #:  
Resolution: None  Resolved in Build: : None
Duplicate of:  None
Voting and Rating
Overall Rating: (1 Total Rating)
4.00 out of 5
Total Votes: 10
Description
I get this error several times, then i simply try to compile again, it's totally random, but really annoying.

The error is always in the line #pragma hdrstop

All my CPPs start with:
//---------------------------------------------------------------------------

#include "Sca300Includes.h"
#pragma hdrstop


Some examples of the error:
[BCC32 Fatal Error] UfrmPsqBemObrigacao.cpp(4): F1004 Internal compiler error at 0xbbcaff7 with base 0xbb50000
[BCC32 Fatal Error] UesInternalSca300AbaComponente.cpp(5): F1004 Internal compiler error at 0xbc4aff7 with base 0xbbd0000
[BCC32 Fatal Error] UdaSca300.cpp(4): F1004 Internal compiler error at 0xbc4aff7 with base 0xbbd0000
Steps to Reproduce:
I really don't now how to reproduce this.
Workarounds
In the project options, set the property "PCH Usage" to "Do not use". It solve the Internal Compiler Error issue, but increase the compile time a lot.
Attachment
InternalCompilerError.zip
Comments

Alexis Laborda at 6/11/2012 6:53:41 AM -
This is a regression, it not happens in C++ Builder 2010.

Alexis Laborda at 6/27/2012 6:09:51 AM -
In the project options, set the property "PCH Usage" to "Do not use". It solve the Internal Compiler Error issue, but increase the compile time a lot.

Alexis Laborda at 7/23/2012 9:28:17 AM -
I've created a smaller PCH and put it in the project options >> "Inject precompiled header file".
Now i'm getting less ICEs, but still happens, and it's not in the "#pragma hdrstop" line anymore, now it appears always in the first line of the .cpp, even when it's a commentary.

I have attached a video showing the issue happening.

Server Response from: ETNACODE01