Watch, Follow, &
Connect with Us

Please visit our new home

Public Report
Report From: Delphi-BCB/IDE/Code Editor/Error Insight    [ Add a report in this area ]  
Report #:  108490   Status: Open
False reports of "$IFEND expected but $ENDIF found at line nnn (nnn:n)" when using Error insight.
Project:  Delphi Build #:  17.0.4625.53395
Version:    17.0 Submitted By:   Pieter Zijlstra
Report Type:  Minor failure / Design problem Date Reported:  9/4/2012 5:03:21 PM
Severity:    Infrequently encountered problem Last Updated: 10/2/2012 2:26:07 PM
Platform:    All versions Internal Tracking #:   32021
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: 54
Apparently starting with XE3 using $IFEND and $ENDIF are interchangeable, Error insight doesn't seem to be updated for this change and produces false error reports.
Steps to Reproduce:
In the IDE:

- open source\rtl\BuildWinRTL.dproj
- open Systems.pas

exp: Structure view shows no errors
act: '$IFEND' expected but '$ENDIF" found at line XXX is reported many times.

Frank Semmling at 5/6/2014 5:29:15 AM -
Yes, the "current" Delphi compiler treat ENDIF and IFEND the same, although they actually once intentionally had a different meaning,
so that one could easily hide the "new" IF directives in an IFDEF in front of the old compilers.


IMHO I think it would be better if Embarcadero would use these directives correctly.
Or it must finally, after all these many years, the Error Insight to be adapted in this regard.

Server Response from: ETNACODE01