Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/Compiler/C++/Front End/Diagnostics    [ Add a report in this area ]  
Report #:  72461   Status: Closed
Compiler hangs when parsing certain illegal constructs
Project:  C++Builder Build #:  12.0.3210.17555
Version:    12.1 Submitted By:   Moritz Beutel
Report Type:  Crash / Data loss / Total failure Date Reported:  3/24/2009 5:34:01 PM
Severity:    Serious / Highly visible problem Last Updated: 3/20/2012 2:24:39 AM
Platform:    All versions Internal Tracking #:   268660
Resolution: Fixed (Resolution Comments) Resolved in Build: : 14.0.3401.20854
Duplicate of:  None
Voting and Rating
Overall Rating: (1 Total Rating)
5.00 out of 5
Total Votes: 5
Description
Bug was discovered by Gilbert Lee in the public newsgroups:

https://forums.codegear.com/thread.jspa?messageID=95938

See steps.

This is a regression from C++Builder 6.
Steps to Reproduce:
- Compile the following code (bcc32 qc72461.c or bcc32 -P qc72461.c):

// -----
void ErrorFunc()
{
for( A = 0; A <= 1; A++)
{
{
for( B = 0 to 1 do
{
}
}
{
for( B = 0 to 1 do
{
}
}
}
}
// -----

Exp.: lots of errors
Act.: some errors are displayed, and BCC won't return anymore.

This also happens in comp32x.dll, thereby locking up the IDE.
Workarounds
None
Attachment
qc72461.zip
Comments

None

Server Response from: ETNACODE01