Skip to content

Commit e8a4ab8

Browse files
committed
fbc: sf.net #893: 'Suffixes are only valid in -lang' error message showing incorrect -lang options allowed
1 parent 4b43cc9 commit e8a4ab8

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

changelog.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ Version 1.07.0
2222
- sf.net #900: LTRIM( wstring, filter ) and TRIM( wstring, filter ) truncate result if filter is zero length string
2323
- github #116: Fix optimizations in [L/R]TrimAny rtlib functions (SkyFish)
2424
- github #145: WSTRING concat and assign buffer (&=) overrun
25+
- sf.net #893: 'Suffixes are only valid in -lang' error message showing incorrect -lang options allowed
2526

2627

2728
Version 1.06.0

src/compiler/lex.bas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ private sub hReadIdentifier _
388388

389389
#macro hCheckIdentifierSuffix()
390390
if( (fbLangOptIsSet( FB_LANG_OPT_SUFFIX ) = FALSE) and ((flags and LEXCHECK_ALLOWSUFFIX) = 0) ) then
391-
errReportNotAllowed(FB_LANG_QB, FB_ERRMSG_SUFFIXONLYVALIDINLANG, "")
391+
errReportNotAllowed( FB_LANG_OPT_SUFFIX, FB_ERRMSG_SUFFIXONLYVALIDINLANG )
392392
end if
393393
#endmacro
394394

0 commit comments

Comments
 (0)