From e8a4ab8721c9a2781126b348a85ed951e27cf287 Mon Sep 17 00:00:00 2001 From: coderJeff Date: Sun, 9 Jun 2019 08:47:44 -0400 Subject: [PATCH] fbc: sf.net #893: 'Suffixes are only valid in -lang' error message showing incorrect -lang options allowed --- changelog.txt | 1 + src/compiler/lex.bas | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/changelog.txt b/changelog.txt index f966d64111..527d693a03 100644 --- a/changelog.txt +++ b/changelog.txt @@ -22,6 +22,7 @@ Version 1.07.0 - sf.net #900: LTRIM( wstring, filter ) and TRIM( wstring, filter ) truncate result if filter is zero length string - github #116: Fix optimizations in [L/R]TrimAny rtlib functions (SkyFish) - github #145: WSTRING concat and assign buffer (&=) overrun +- sf.net #893: 'Suffixes are only valid in -lang' error message showing incorrect -lang options allowed Version 1.06.0 diff --git a/src/compiler/lex.bas b/src/compiler/lex.bas index 562e905f9e..f20a7fb4ad 100644 --- a/src/compiler/lex.bas +++ b/src/compiler/lex.bas @@ -388,7 +388,7 @@ private sub hReadIdentifier _ #macro hCheckIdentifierSuffix() if( (fbLangOptIsSet( FB_LANG_OPT_SUFFIX ) = FALSE) and ((flags and LEXCHECK_ALLOWSUFFIX) = 0) ) then - errReportNotAllowed(FB_LANG_QB, FB_ERRMSG_SUFFIXONLYVALIDINLANG, "") + errReportNotAllowed( FB_LANG_OPT_SUFFIX, FB_ERRMSG_SUFFIXONLYVALIDINLANG ) end if #endmacro