Watch, Follow, &
Connect with Us

Please visit our new home
community.embarcadero.com.


Welcome, Guest
Guest Settings
Help

Thread: ICE: Internal compiler error: C0000005 @ 259FE379 when compiling a lambda


This question is not answered. Helpful answers available: 1. Correct answers available: 1.


Permlink Replies: 2 - Last Post: Feb 21, 2018 10:15 AM Last Post By: Ted Lyngmo Threads: [ Previous | Next ]
Ted Lyngmo

Posts: 117
Registered: 10/3/06
ICE: Internal compiler error: C0000005 @ 259FE379 when compiling a lambda  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 20, 2018 2:02 PM
Hi!

I'm getting an internal compiler error when changing the order of two lines.

This works:
Synchronize( [&]{
  FStatus->Caption = L"TEXT";
  frmMain->memLogger->Lines->Text = L"TEXT";
});

But changing the order of the lines in the lambda breaks the compiler:
Synchronize( [&]{
  frmMain->memLogger->Lines->Text = L"TEXT";
  FStatus->Caption = L"TEXT";
});

Like this:
bcc32c command line for "gothread.cpp"
  c:\program files\embarcadero\studio\19.0\bin\bcc32c.exe -cc1 -D NDEBUG -n .\Win32\Release -I C:\Users\Ted\Dropbox\E2\GraphSolver -I "c:\program 
  files\embarcadero\studio\19.0\include\windows\vcl" -I .. -I ..\..\..\..\Dropbox\E2\GraphSolver -isystem "c:\program 
  files\embarcadero\studio\19.0\include" -isystem "c:\program files\embarcadero\studio\19.0\include\dinkumware64" -isystem "c:\program 
  files\embarcadero\studio\19.0\include\windows\crtl" -isystem "c:\program files\embarcadero\studio\19.0\include\windows\sdk" -isystem "c:\program 
  files\embarcadero\studio\19.0\include\windows\rtl" -isystem "c:\program files\embarcadero\studio\19.0\include\windows\vcl" -isystem 
  C:\Users\Public\Documents\Embarcadero\Studio\19.0\hpp\Win32 -isystem C:\Users\Public\Documents\Embarcadero\Studio\19.0\hpp\Win32 -fborland-extensions 
  -nobuiltininc -nostdsysteminc -triple i686-pc-win32-omf -emit-obj -cxx-abi borland -masm-verbose -ffunction-sections -fexceptions -fcxx-exceptions 
  -fseh -mdisable-fp-elim -fno-spell-checking -fno-use-cxa-atexit -fno-threadsafe-statics -x c++ -std=c++11 -O2 -fmath-errno -tM -tU -tW -o 
  .\Win32\Release\gothread.obj -auto-dependency-output -MT .\Win32\Release\gothread.obj gothread.cpp 
[bcc32c Error] gothread.cpp(1): ICE: Internal compiler error: C0000005 @ 259FE379


I've cleaned the project and restarted the computer but this happens all the time I try to change the order of those two lines.

The FStatus is a TStaticText* and frmMain->memLogger is a TMemo* if it matters. I'm not sure if I'm trying to do something extremely unusual/crazy. Should the breaking code work or should it have given me a compiler error (had it not crashed)?

Br,
Ted
Greg Reese

Posts: 100
Registered: 7/15/05
Re: ICE: Internal compiler error: C0000005 @ 259FE379 when compiling a lambda
Helpful
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 21, 2018 5:01 AM   in response to: Ted Lyngmo in response to: Ted Lyngmo
Ted Lyngmo wrote:
Hi!

I'm getting an internal compiler error when changing the order of two lines.
Br,
Ted

Ted,
See if any of the solutions at [https://forums.embarcadero.com/thread.jspa?threadID=247280] help.
Greg Reese
Ted Lyngmo

Posts: 117
Registered: 10/3/06
Re: ICE: Internal compiler error: C0000005 @ 259FE379 when compiling a lambda  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 21, 2018 10:07 AM   in response to: Greg Reese in response to: Greg Reese
Greg Reese wrote:
See if any of the solutions at [https://forums.embarcadero.com/thread.jspa?threadID=247280] help.

Thanks Greg. Interesting read indeed - but the classes involved are pure VCL (TMemo and TStaticText), except for the TThread decendant calling the Synchronize function, but it doesn't have multiple inheritance either. It does however contain an object which itself has a vector of objects with multiple inheritance. The containing object and those with multiple inheritance doesn't have anything to do with VCL. It's common code in pure C++11.

In the RSP-link (https://quality.embarcadero.com/browse/RSP-16729) it says that the inheritance bug is fixed in 10.2 Tokyo Release 2 - but I'm on 10.2.1 and don't think I'm allowed a free upgrade. I can download the upgrade from my Embarcadero side (where it's listed as one of my downloads) but when I try installing it, it says that I'm not allowed. :-/

Edit: and in this project I haven't created or used any packages other than the standard.

Br,
Ted
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02