Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/Compiler/C++/Front End/Invocation    [ Add a report in this area ]  
Report #:  19328   Status: Closed
(Pulled) pushing and popping -v- results in an internal compiler error. Note : this is only happening in the IDE.  From the command li
Project:  C++Builder Build #:  4.0
Version:    10.0 Submitted By:   John Kaster
Report Type:  Crash / Data loss / Total failure Date Reported:  1/4/1999 12:00:00 AM
Severity:    Serious / Highly visible problem Last Updated: 3/20/2012 2:24:39 AM
Platform:    All versions Internal Tracking #:   43758
Resolution: Fixed (Resolution Comments) Resolved in Build: : 10.0.2098.14501
Duplicate of:  None
Voting and Rating
Overall Rating: No Ratings Yet
0.00 out of 5
Total Votes: None
Description
pushing and popping -v- results in an internal compiler error.

Note : this is only happening in the IDE.  From the command line the same code invoked with bcc32 -v gives an Incorrect pragma directive error.
Steps to Reproduce:
1.  File | New | Console Application
2.  Paste in code below
3.  F9

//exp: either clean compile or bad pragma directive message
//res: [C++ Fatal Error] Unit1.cpp(15): F1004 Internal compiler error at 0xc9f8b0 with base 0xc10000

=======SNIP=======

#pragma checkoption -v

#pragma option push -v-
int three()
{
        return 3;
}
#pragma option pop

int four()
{
        return 4;
}

int main(void)
{
        return four() - three() - 1;
}

====================

Workarounds
None
Attachment
N
Comments

None

Server Response from: ETNACODE01