C.3 Parser messages

This section lists all parser messages. The parser takes care of the semantics of you language, i.e. it determines if your Pascal constructs are correct.

Error 3000: Parser - Syntax Error

An error against the Turbo Pascal language was encountered. This typically happens when an illegal character is found in the source file.
Error 3004: INTERRUPT procedure cannot be nested

An INTERRUPT procedure must be global.
Warning 3005: Procedure type ”arg. 1” ignored

The specified procedure directive is ignored by FPC programs.
Error 3006: Not all declarations of ”arg. 1” are declared with OVERLOAD

When you want to use overloading using the OVERLOAD directive, then all declarations need to have OVERLOAD specified.
Error 3008: Duplicate exported function name ”arg. 1

Exported function names inside a specific DLL must all be different.
Error 3009: Duplicate exported function index arg. 1

Exported function indexes inside a specific DLL must all be different.
Error 3010: Invalid index for exported function

DLL function index must be in the range 1..$FFFF.
Warning 3011: Relocatable DLL or executable arg. 1debug info does not work, disabled.

It is currently not possible to include debug information in a relocatable DLL.
Warning 3012: To allow debugging for win32 code you need to disable relocation with -WN option

Stabs debug info is wrong for relocatable DLL or EXES. Use -WN if you want to debug win32 executables.
Error 3013: Constructor name must be INIT

You are declaring an object constructor with a name which is not init, and the -Ss switch is in effect. See the switch -Ss (see page 123).
Error 3014: Destructor name must be DONE

You are declaring an object destructor with a name which is not done, and the -Ss switch is in effect. See the switch -Ss (see page 123).
Error 3016: Procedure type INLINE not supported

You tried to compile a program with C++ style inlining, and forgot to specify the -Si option (-Si (see page 122)). The compiler doesn’t support C++ styled inlining by default.
Warning 3018: Constructor should be public

Constructors must be in the ’public’ part of an object (class) declaration.
Warning 3019: Destructor should be public

Destructors must be in the ’public’ part of an object (class) declaration.
Note 3020: Class should have one destructor only

You can declare only one destructor for a class.
Error 3021: Local class definitions are not allowed

Classes must be defined globally. They cannot be defined inside a procedure or function.
Fatal error 3022: Anonymous class definitions are not allowed

An invalid object (class) declaration was encountered, i.e. an object or class without methods that isn’t derived from another object or class. For example:
 Type o = object  
          a : longint;  
          end;  
 

will trigger this error.

Note 3023: The object ”arg. 1” has no VMT

This is a note indicating that the declared object has no virtual method table.
Error 3024: Illegal parameter list

You are calling a function with parameters that are of a different type than the declared parameters of the function.
Error 3026: Wrong number of parameters specified for call to ”arg. 1

There is an error in the parameter list of the function or procedure – the number of parameters is not correct.
Error 3027: Overloaded identifier ”arg. 1” isn’t a function

The compiler encountered a symbol with the same name as an overloaded function, but it is not a function it can overload.
Error 3028: Overloaded functions have the same parameter list

You’re declaring overloaded functions, but with the same parameter list. Overloaded function must have at least 1 different parameter in their declaration.
Error 3029: Function header doesn’t match the previous declaration ”arg. 1

You declared a function with the same parameters but different result type or function modifiers.
Error 3030: Function header ”arg. 1” doesn’t match forward : var name changes arg. 2=¿ arg. 3

You declared the function in the interface part, or with the forward directive, but defined it with a different parameter list.
Note 3031: Values in enumeration types have to be ascending

Free Pascal allows enumeration constructions as in C. Examine the following two declarations:
 type a = (A_A,A_B,A_E:=6,A_UAS:=200);  
 type a = (A_A,A_B,A_E:=6,A_UAS:=4);  
 

The second declaration would produce an error. A_UAS needs to have a value higher than A_E, i.e. at least 7.

Error 3033: With cannot be used for variables in a different segment

With stores a variable locally on the stack, but this is not possible if the variable belongs to another segment.
Error 3034: Function nesting ¿ 31

You can nest function definitions only 31 levels deep.
Error 3035: Range check error while evaluating constants

The constants are out of their allowed range.
Warning 3036: Range check error while evaluating constants

The constants are out of their allowed range.
Error 3037: Duplicate case label

You are specifying the same label 2 times in a case statement.
Error 3038: Upper bound of case range is less than lower bound

The upper bound of a case label is less than the lower bound and this is useless.
Error 3039: Typed constants of classes or interfaces are not allowed

You cannot declare a constant of type class or object.
Error 3040: Function variables of overloaded functions are not allowed

You are trying to assign an overloaded function to a procedural variable. This is not allowed.
Error 3041: String length must be a value from 1 to 255

The length of a shortstring in Pascal is limited to 255 characters. You are trying to declare a string with length less than 1 or greater than 255.
Warning 3042: Use extended syntax of NEW and DISPOSE for instances of objects

If you have a pointer a to an object type, then the statement new(a) will not initialize the object (i.e. the constructor isn’t called), although space will be allocated. You should issue the new(a,init) statement. This will allocate space, and call the constructor of the object.
Warning 3043: Use of NEW or DISPOSE for untyped pointers is meaningless

Error 3044: Use of NEW or DISPOSE is not possible for untyped pointers

You cannot use new(p) or dispose(p) if p is an untyped pointer because no size is associated to an untyped pointer. It is accepted for compatibility in TP and DELPHI modes, but the compiler will still warn you if it finds such a construct.
Error 3045: Class identifier expected

This happens when the compiler scans a procedure declaration that contains a dot, i.e., an object or class method, but the type in front of the dot is not a known type.
Error 3046: type identifier not allowed here

You cannot use a type inside an expression.
Error 3047: Method identifier expected

This identifier is not a method. This happens when the compiler scans a procedure declaration that contains a dot, i.e., an object or class method, but the procedure name is not a procedure of this type.
Error 3048: Function header doesn’t match any method of this class ”arg. 1

This identifier is not a method. This happens when the compiler scans a procedure declaration that contains a dot, i.e., an object or class method, but the procedure name is not a procedure of this type.
procedure/function arg. 1

When using the -vd switch, the compiler tells you when it starts processing a procedure or function implementation.
Error 3050: Illegal floating point constant

The compiler expects a floating point expression, and gets something else.
Error 3051: FAIL can be used in constructors only

You are using the fail keyword outside a constructor method.
Error 3052: Destructors cannot have parameters

You are declaring a destructor with a parameter list. Destructor methods cannot have parameters.
Error 3053: Only class methods, class properties and class variables can be referred with class references

This error occurs in a situation like the following:
 Type :  
    Tclass = Class of Tobject;  
 
 Var C : TClass;  
 
 begin  
 ...  
 C.free  
 

Free is not a class method and hence cannot be called with a class reference.

Error 3054: Only class methods, class properties and class variables can be accessed in class methods

This is related to the previous error. You cannot call a method of an object from inside a class method. The following code would produce this error:
 class procedure tobject.x;  
 
 begin  
   free  
 

Because free is a normal method of a class it cannot be called from a class method.

Error 3055: Constant and CASE types do not match

One of the labels is not of the same type as the case variable.
Error 3056: The symbol cannot be exported from a library

You can only export procedures and functions when you write a library. You cannot export variables or constants.
Warning 3057: An inherited method is hidden by ”arg. 1

A method that is declared virtual in a parent class, should be overridden in the descendant class with the override directive. If you don’t specify the override directive, you will hide the parent method; you will not override it.
Error 3058: There is no method in an ancestor class to be overridden: ”arg. 1

You are trying to override a virtual method of a parent class that does not exist.
Error 3059: No member is provided to access property

You specified no read directive for a property.
Warning 3060: Stored property directive is not yet implemented

This message is no longer used, as the stored directive has been implemented.
Error 3061: Illegal symbol for property access

There is an error in the read or write directives for an array property. When you declare an array property, you can only access it with procedures and functions. The following code would cause such an error.
 tmyobject = class  
   i : integer;  
   property x [i : integer]: integer read I write i;  
 

Error 3062: Cannot access a protected field of an object here

Fields that are declared in a protected section of an object or class declaration cannot be accessed outside the module where the object is defined, or outside descendent object methods.
Error 3063: Cannot access a private field of an object here

Fields that are declared in a private section of an object or class declaration cannot be accessed outside the module where the class is defined.
Error 3066: Overridden methods must have the same return type: ”arg. 2” is overridden by ”arg. 1” which has another return type

If you declare overridden methods in a class definition, they must have the same return type.
Error 3067: EXPORT declared functions cannot be nested

You cannot declare a function or procedure within a function or procedure that was declared as an export procedure.
Error 3068: Methods cannot be EXPORTed

You cannot declare a procedure that is a method for an object as exported.
Error 3069: Call by var for arg no. arg. 1has to match exactly: Got ”arg. 2” expected ”arg. 3

When calling a function declared with var parameters, the variables in the function call must be of exactly the same type. There is no automatic type conversion.
Error 3070: Class isn’t a parent class of the current class

When calling inherited methods, you are trying to call a method of a non-related class. You can only call an inherited method of a parent class.
Error 3071: SELF is only allowed in methods

You are trying to use the self parameter outside an object’s method. Only methods get passed the self parameters.
Error 3072: Methods can be only in other methods called direct with type identifier of the class

A construction like sometype.somemethod is only allowed in a method.
Error 3073: Illegal use of ’:’

You are using the format : (colon) 2 times on an expression that is not a real expression.
Error 3074: Range check error in set constructor or duplicate set element

The declaration of a set contains an error. Either one of the elements is outside the range of the set type, or two of the elements are in fact the same.
Error 3075: Pointer to object expected

You specified an illegal type in a new statement. The extended syntax of new needs an object as a parameter.
Error 3076: Expression must be constructor call

When using the extended syntax of new, you must specify the constructor method of the object you are trying to create. The procedure you specified is not a constructor.
Error 3077: Expression must be destructor call

When using the extended syntax of dispose, you must specify the destructor method of the object you are trying to dispose of. The procedure you specified is not a destructor.
Error 3078: Illegal order of record elements

When declaring a constant record, you specified the fields in the wrong order.
Error 3079: Expression type must be class or record type, got arg. 1

A with statement needs an argument that is of the type record or class. You are using with on an expression that is not of this type.
Error 3080: Procedures cannot return a value

In Free Pascal, you can specify a return value for a function when using the exit statement. This error occurs when you try to do this with a procedure. Procedures cannot return a value.
Error 3081: constructors, destructors and class operators must be methods

You’re declaring a procedure as destructor, constructor or class operator, when the procedure isn’t a class method.
Error 3082: Operator is not overloaded

You’re trying to use an overloaded operator when it is not overloaded for this type.
Error 3083: Impossible to overload assignment for equal types

You cannot overload assignment for types that the compiler considers as equal.
Error 3084: Impossible operator overload

The combination of operator, arguments and return type are incompatible.
Error 3085: Re-raise isn’t possible there

You are trying to re-raise an exception where it is not allowed. You can only re-raise exceptions in an except block.
Error 3086: The extended syntax of new or dispose isn’t allowed for a class

You cannot generate an instance of a class with the extended syntax of new. The constructor must be used for that. For the same reason, you cannot call dispose to de-allocate an instance of a class, the destructor must be used for that.
Error 3088: Procedure overloading is switched off

When using the -So switch, procedure overloading is switched off. Turbo Pascal does not support function overloading.
Error 3089: It is not possible to overload this operator. Related overloadable operators (if any) are: arg. 1

You are trying to overload an operator which cannot be overloaded. The following operators can be overloaded :
    +, -, *, /, =, >, <, <=, >=, is, as, in, **, :=  
 

Error 3090: Comparative operator must return a boolean value

When overloading the = operator, the function must return a boolean value.
Error 3091: Only virtual methods can be abstract

You are declaring a method as abstract, when it is not declared to be virtual.
Fatal error 3092: Use of unsupported feature: ”arg. 1”.

You’re trying to force the compiler into doing something it cannot do yet.
Error 3093: The mix of different kind of objects (class, object, interface, etc) isn’t allowed

You cannot derive objects, classes, cppclasses and interfaces intertwined. E.g. a class cannot have an object as parent and vice versa.
Warning 3094: Unknown procedure directive had to be ignored: ”arg. 1

The procedure directive you specified is unknown.
Error 3095: arg. 1can be associated with only one variable

You cannot specify more than one variable before the absolute, export, external, weakexternal, public and cvar directives. As a result, for example the following construct will provide this error:
 Var Z : Longint;  
     X,Y : Longint absolute Z;  
 

Error 3096: absolute can only be associated with a var or const

The address of an absolute directive can only point to a variable or constant. Therefore, the following code will produce this error:
   Procedure X;  
 
  var p : longint absolute x;  
 

Error 3097: Only one variable can be initialized

You cannot specify more than one variable with a initial value in Delphi mode.
Error 3098: Abstract methods shouldn’t have any definition (with function body)

Abstract methods can only be declared, you cannot implement them. They should be overridden by a descendant class.
Error 3099: This overloaded function cannot be local (must be exported)

You are defining an overloaded function in the implementation part of a unit, but there is no corresponding declaration in the interface part of the unit.
Warning 3100: Virtual methods are used without a constructor in ”arg. 1

If you declare objects or classes that contain virtual methods, you need to have a constructor and destructor to initialize them. The compiler encountered an object or class with virtual methods that doesn’t have a constructor/destructor pair.
Macro defined: arg. 1

When -vc is used, the compiler tells you when it defines macros.
Macro undefined: arg. 1

When -vc is used, the compiler tells you when it undefines macros.
Macro arg. 1set to arg. 2

When -vc is used, the compiler tells you what values macros get.
Info 3104: Compiling arg. 1

When you turn on information messages (-vi), the compiler tells you what units it is recompiling.
Parsing interface of unit arg. 1

This tells you that the reading of the interface of the current unit has started
Parsing implementation of arg. 1

This tells you that the code reading of the implementation of the current unit, library or program starts
Compiling arg. 1for the second time

When you request debug messages (-vd) the compiler tells you what units it recompiles for the second time.
Error 3109: No property found to override

You want to override a property of a parent class, when there is, in fact, no such property in the parent class.
Error 3110: Only one default property is allowed

You specified a property as Default, but the class already has a default property, and a class can have only one default property.
Error 3111: The default property must be an array property

Only array properties of classes can be made default properties.
Error 3112: Virtual constructors are only supported in class object model

You cannot have virtual constructors in objects. You can only have them in classes.
Error 3113: No default property available

You are trying to access a default property of a class, but this class (or one of its ancestors) doesn’t have a default property.
Error 3114: The class cannot have a published section, use the {$M+} switch

If you want a published section in a class definition, you must use the {$M+} switch, which turns on generation of type information.
Error 3115: Forward declaration of class ”arg. 1” must be resolved here to use the class as ancestor

To be able to use an object as an ancestor object, it must be defined first. This error occurs in the following situation:
  Type ParentClas = Class;  
       ChildClass = Class(ParentClass)  
         ...  
       end;  
 

where ParentClass is declared but not defined.

Error 3116: Local operators not supported

You cannot overload locally, i.e. inside procedures or function definitions.
Error 3117: Procedure directive ”arg. 1” not allowed in interface section

This procedure directive is not allowed in the interface section of a unit. You can only use it in the implementation section.
Error 3118: Procedure directive ”arg. 1” not allowed in implementation section

This procedure directive is not allowed in the implementation section of a unit. You can only use it in the interface section.
Error 3119: Procedure directive ”arg. 1” not allowed in procvar declaration

This procedure directive cannot be part of a procedural or function type declaration.
Error 3120: Function is already declared Public/Forward ”arg. 1

You will get this error if a function is defined as forward twice. Or if it occurs in the interface section, and again as a forward declaration in the implementation section.
Error 3121: Cannot use both EXPORT and EXTERNAL

These two procedure directives are mutually exclusive.
Note 3123: ”arg. 1” not yet supported inside inline procedure/function

Inline procedures don’t support this declaration.
Hint 3124: Inlining disabled

Inlining of procedures is disabled.
Info 3125: Writing Browser log arg. 1

When information messages are on, the compiler warns you when it writes the browser log (generated with the {$Y+ } switch).
Hint 3126: Maybe pointer dereference is missing?

The compiler thinks that a pointer may need a dereference.
Fatal error 3127: Selected assembler reader not supported

The selected assembler reader (with {$ASMMODE xxx} is not supported. The compiler can be compiled with or without support for a particular assembler reader.
Error 3128: Procedure directive ”arg. 1” cannot be used with arg. 2

You specified a procedure directive that conflicts with other directives. For instance cdecl and pascal are mutually exclusive.
Error 3129: Calling convention doesn’t match forward

This error happens when you declare a function or procedure with e.g. cdecl; but omit this directive in the implementation, or vice versa. The calling convention is part of the function declaration, and must be repeated in the function definition.
Error 3131: Property cannot have a default value

Set properties or indexed properties cannot have a default value.
Error 3132: The default value of a property must be constant

The value of a default declared property must be known at compile time. The value you specified is only known at run time. This happens e.g. if you specify a variable name as a default value.
Error 3133: Symbol cannot be published, can be only a class

Only class type variables can be in a published section of a class if they are not declared as a property.
Error 3134: This kind of property cannot be published

Properties in a published section cannot be array properties. They must be moved to public sections. Properties in a published section must be an ordinal type, a real type, strings or sets.
Error 3136: An import name is required

Some targets need a name for the imported procedure or a cdecl specifier.
Error 3138: Division by zero

A division by zero was encountered.
Error 3139: Invalid floating point operation

An operation on two real type values produced an overflow or a division by zero.
Error 3140: Upper bound of range is less than lower bound

The upper bound of an array declaration is less than the lower bound and this is not possible.
Warning 3141: String ”arg. 1” is longer than ”arg. 2

The size of the constant string is larger than the size you specified in string type definition.
Error 3142: String length is larger than array of char length

The size of the constant string is larger than the size you specified in the Array[x..y] of char definition.
Error 3143: Illegal expression after message directive

Free Pascal supports only integer or string values as message constants.
Error 3144: Message handlers can take only one call by ref. parameter

A method declared with the message directive as message handler can take only one parameter which must be declared as call by reference. Parameters are declared as call by reference using the var-directive.
Error 3145: Duplicate message label: ”arg. 1

A label for a message is used twice in one object/class.
Error 3146: Self can only be an explicit parameter in methods which are message handlers

The Self parameter can only be passed explicitly to a method which is declared as message handler.
Error 3147: Threadvars can be only static or global

Threadvars must be static or global; you cannot declare a thread local to a procedure. Local variables are always local to a thread, because every thread has its own stack and local variables are stored on the stack.
Fatal error 3148: Direct assembler not supported for binary output format

You cannot use direct assembler when using a binary writer. Choose an other output format or use another assembler reader.
Warning 3149: Don’t load OBJPAS unit manually, use {$mode objfpc} or {$mode delphi} instead

You are trying to load the ObjPas unit manually from a uses clause. This is not a good idea. Use the {$MODE OBJFPC} or {$mode delphi} directives which load the unit automatically.
Error 3150: OVERRIDE cannot be used in objects

Override is not supported for objects, use virtual instead to override a method of a parent object.
Error 3151: Data types which require initialization/finalization cannot be used in variant records

Some data types (e.g. ansistring) need initialization/finalization code which is implicitly generated by the compiler. Such data types cannot be used in the variant part of a record.
Error 3152: Resourcestrings can be only static or global

Resourcestring cannot be declared local, only global or using the static directive.
Error 3153: Exit with argument cannot be used here

An exit statement with an argument for the return value cannot be used here. This can happen for example in try..except or try..finally blocks.
Error 3154: The type of the storage symbol must be boolean

If you specify a storage symbol in a property declaration, it must be a boolean type.
Error 3155: This symbol isn’t allowed as storage symbol

You cannot use this type of symbol as storage specifier in property declaration. You can use only methods with the result type boolean, boolean class fields or boolean constants.
Error 3156: Only classes which are compiled in $M+ mode can be published

A class-typed field in the published section of a class can only be a class which was compiled in {$M+} or which is derived from such a class. Normally such a class should be derived from TPersistent.
Error 3157: Procedure directive expected

This error is triggered when you have a {$Calling} directive without a calling convention specified. It also happens when declaring a procedure in a const block and you used a ; after a procedure declaration which must be followed by a procedure directive. Correct declarations are:
 const  
   p : procedure;stdcall=nil;  
   p : procedure stdcall=nil;  
 

Error 3158: The value for a property index must be of an ordinal type

The value you use to index a property must be of an ordinal type, for example an integer or enumerated type.
Error 3159: Procedure name too short to be exported

The length of the procedure/function name must be at least 2 characters long. This is because of a bug in dlltool which doesn’t parse the .def file correctly with a name of length 1.
Error 3160: No DEFFILE entry can be generated for unit global vars

Error 3161: Compile without -WD option

You need to compile this file without the -WD switch on the command line.
Fatal error 3162: You need ObjFpc (-S2) or Delphi (-Sd) mode to compile this module

You need to use {$MODE OBJFPC} or {$MODE DELPHI} to compile this file. Or use the corresponding command line switch, either -Mobjfpc or -MDelphi.
Error 3163: Cannot export with index under arg. 1

Exporting of functions or procedures with a specified index is not supported on this target.
Error 3164: Exporting of variables is not supported under arg. 1

Exporting of variables is not supported on this target.
Error 3165: Improper GUID syntax

The GUID indication does not have the proper syntax. It should be of the form
 {XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}  
 

Where each X represents a hexadecimal digit.

Warning 3168: Procedure named ”arg. 1” not found that is suitable for implementing the arg. 2.arg. 3

The compiler cannot find a suitable procedure which implements the given method of an interface. A procedure with the same name is found, but the arguments do not match.
Error 3169: Interface identifier expected

This happens when the compiler scans a class declaration that contains interface function name mapping code like this:
 type  
   TMyObject = class(TObject, IDispatch)  
     function IUnknown.QueryInterface=MyQueryInterface;  
     ....  
 

and the interface before the dot is not listed in the inheritance list.

Error 3170: Type ”arg. 1” cannot be used as array index type

Types like qword or int64 are not allowed as array index type.
Error 3171: Con- and destructors are not allowed in interfaces

Constructor and destructor declarations are not allowed in interfaces. In the most cases method QueryInterface of IUnknown can be used to create a new interface.
Error 3172: Access specifiers cannot be used in INTERFACEs and OBJCPROTOCOLs

The access specifiers public, private, protected and published cannot be used in interfaces, Objective-C protocols and categories because all methods of an interface/protocol/category must be public.
Error 3173: An interface, helper or Objective-C protocol or category cannot contain fields

Declarations of fields are not allowed in interfaces, helpers and Objective-C protocols and categories. An interface/helper/protocol/category can contain only methods and properties with method read/write specifiers.
Error 3174: Cannot declare local procedure as EXTERNAL

Declaring local procedures as external is not possible. Local procedures get hidden parameters that will make the chance of errors very high.
Warning 3175: Some fields coming before ”arg. 1” were not initialized

In Delphi mode, not all fields of a typed constant record have to be initialized, but the compiler warns you when it detects such situations.
Error 3176: Some fields coming before ”arg. 1” were not initialized

In all syntax modes but Delphi mode, you cannot leave some fields uninitialized in the middle of a typed constant record.
Warning 3177: Some fields coming after ”arg. 1” were not initialized

You can leave some fields at the end of a type constant record uninitialized (The compiler will initialize them to zero automatically). This may be the cause of subtle problems.
Error 3178: VarArgs directive (or ’...’ in MacPas) without CDecl/CPPDecl/MWPascal/StdCall and External

The varargs directive (or the “...” varargs parameter in MacPas mode) can only be used with procedures or functions that are declared with external and one of cdecl, cppdecl, stdcall and mwpascal. This functionality is only supported to provide a compatible interface to C functions like printf.
Error 3179: Self must be a normal (call-by-value) parameter

You cannot declare Self as a const or var parameter, it must always be a call-by-value parameter.
Error 3180: Interface ”arg. 1” has no interface identification

When you want to assign an interface to a constant, then the interface must have a GUID value set.
Error 3181: Unknown class field or method identifier ”arg. 1

Properties must refer to a field or method in the same class.
Warning 3182: Overriding calling convention ”arg. 1” with ”arg. 2

There are two directives in the procedure declaration that specify a calling convention. Only the last directive will be used.
Error 3183: Typed constants of the type ”procedure of object” need a Self pointer that’s known at compile time

In order to initialize a method pointer with a method, the value of the Self pointer for calling that method at run time must be known at compile time. Thus, a method pointer can be initialized either with Nil, or with a class method that is accessed via a class type or a class reference type.
Error 3184: Default value can only be assigned to one parameter

It is not possible to specify a default value for several parameters at once. The following is invalid:
 Procedure MyProcedure (A,B : Integer = 0);  
 

Instead, this should be declared as

 Procedure MyProcedure (A : Integer = 0; B : Integer = 0);  
 

Error 3185: Default parameter required for ”arg. 1

The specified parameter requires a default value.
Warning 3186: Use of unsupported feature!

You’re trying to force the compiler into doing something it cannot do yet.
Hint 3187: C arrays are passed by reference

Any array passed to a C function is passed by a pointer (i.e. by reference).
Error 3188: C array of const must be the last argument

You cannot add any other argument after an array of const for cdecl functions, as the size pushed on stack for this argument is not known.
Hint 3189: Type ”arg. 1” redefinition

This is an indicator that a previously declared type is being redefined as something else. This may, or may not be, a potential source of errors.
Warning 3190: cdecl’ared functions have no high parameter

Functions declared with the cdecl modifier do not pass an extra implicit parameter.
Warning 3191: cdecl’ared functions do not support open strings

Openstring is not supported for functions that have the cdecl modifier.
Error 3192: Cannot initialize variables declared as threadvar

Variables declared as threadvar cannot be initialized with a default value. The variables will always be filled with zero at the start of a new thread.
Error 3193: Message directive is only allowed in Classes

The message directive is only supported for Class types.
Error 3194: Procedure or Function expected

A class method can only be specified for procedures and functions.
Warning 3195: Calling convention directive ignored: ”arg. 1

Some calling conventions are supported only by certain CPUs. I.e. most non-i386 ports support only the standard ABI calling convention of the CPU.
Error 3196: REINTRODUCE cannot be used in objects

reintroduce is not supported for objects, Objective-C classes and Objective-C protocols.
Error 3197: Each argument must have its own location

If locations for arguments are specified explicitly as it is required by some syscall conventions, each argument must have its own location. Things like
 procedure p(i,j : longint 'r1');  
 

are not allowed.

Error 3198: Each argument must have an explicit location

If one argument has an explicit argument location, all arguments of a procedure must have one.
Error 3199: Invalid explicit parameter location specified

Syscalls specific: the specified explicit location string for this parameter cannot be parsed, invalid, or The location specified for an argument isn’t recognized by the compiler.
Error 3200: 32 Bit-Integer or pointer variable expected

The libbase for MorphOS/AmigaOS can be given only as longint, dword or any pointer variable.
Error 3201: Goto statements are not allowed between different procedures

It isn’t allowed to use goto statements referencing labels outside the current procedure. The following example shows the problem:
 ...  
   procedure p1;  
   label  
     l1;  
 
     procedure p2;  
     begin  
       goto l1; // This goto ISN'T allowed  
     end;  
 
   begin  
     p2  
   l1:  
   end;  
 ...  
 
 

Fatal error 3202: Procedure too complex, it requires too many registers

Your procedure body is too long for the compiler. You should split the procedure into multiple smaller procedures.
Error 3203: Illegal expression

This can occur under many circumstances. Usually when trying to evaluate constant expressions.
Error 3204: Invalid integer expression

You made an expression which isn’t an integer, and the compiler expects the result to be an integer.
Error 3205: Illegal qualifier

One of the following is happening :
Error 3206: High range limit ¡ low range limit

You are declaring a subrange, and the high limit is less than the low limit of the range.
Error 3207: Exit’s parameter must be the name of the procedure it is used in or of a surrounding procedure

The parameter of a exit call in macpas mode must be either the name of the current subroutine or of a surrounding one
Error 3208: Illegal assignment to for-loop variable ”arg. 1

The type of a for loop variable must be an ordinal type. Loop variables cannot be reals or strings. You also cannot assign values to loop variables inside the loop (Except in Delphi and TP modes). Use a while or repeat loop instead if you need to do something like that, since those constructs were built for that.
Error 3209: Cannot declare local variable as EXTERNAL

Declaring local variables as external is not allowed. Only global variables can reference external variables.
Error 3210: Procedure is already declared EXTERNAL

The procedure is already declared with the EXTERNAL directive in an interface or forward declaration.
Warning 3211: Implicit uses of Variants unit

The Variant type is used in the unit without any used unit using the Variants unit. The compiler has implicitly added the Variants unit to the uses list. To remove this warning the Variants unit needs to be added to the uses statement.
Error 3212: Class and static methods cannot be used in INTERFACES

The specifier class and directive static cannot be used in interfaces because all methods of an interface must be public.
Error 3213: Overflow in arithmetic operation

An operation on two integer values produced an overflow.
Error 3214: Protected or private expected

strict can be only used together with protected or private.
Error 3215: SLICE cannot be used outside of parameter list

slice can be used only for arguments accepting an open array parameter.
Error 3216: A DISPINTERFACE cannot have a parent class

A DISPINTERFACE is a special type of interface which cannot have a parent class. Dispinterface always derive from IDispatch type.
Error 3217: A DISPINTERFACE needs a guid

A DISPINTERFACE always needs an interface identification (a GUID).
Warning 3218: Overridden methods must have a related return type. This code may crash, it depends on a Delphi parser bug (”arg. 2” is overridden by ”arg. 1” which has another return type)

If you declare overridden methods in a class definition, they must have the same return type. Some versions of Delphi allow you to change the return type of interface methods, and even to change procedures into functions, but the resulting code may crash depending on the types used and the way the methods are called.
Error 3219: Dispatch IDs must be ordinal constants

The dispid keyword must be followed by an ordinal constant (the dispid index).
Error 3220: The range of the array is too large

Regardless of the size taken up by its elements, an array cannot have more than high(ptrint) elements. Additionally, the range type must be a subrange of ptrint.
Error 3221: The address cannot be taken of bit packed array elements and record fields

If you declare an array or record as packed in Mac Pascal mode (or as packed in any mode with {$bitpacking on}), it will be packed at the bit level. This means it becomes impossible to take addresses of individual array elements or record fields. The only exception to this rule is in the case of packed arrays elements whose packed size is a multiple of 8 bits.
Error 3222: Dynamic arrays cannot be packed

Only regular (and possibly in the future also open) arrays can be packed.
Error 3223: Bit packed array elements and record fields cannot be used as loop variables

If you declare an array or record as packed in Mac Pascal mode (or as packed in any mode with {$bitpacking on}), it will be packed at the bit level. For performance reasons, they cannot be used as loop variables.
Error 3224: VAR, TYPE and CONST are allowed only in records, objects and classes

The usage of VAR, TYPE and CONST to declare new types inside an object is allowed only inside records, objects and classes.
Error 3225: This type cannot be a generic

Only Classes, Objects, Interfaces and Records are allowed to be used as generic.
Warning 3226: Don’t load LINEINFO unit manually, Use the -gl compiler switch instead

Do not use the lineinfo unit directly, Use the -gl switch which automatically adds the correct unit for reading the selected type of debugging information. The unit that needs to be used depends on the type of debug information used when compiling the binary.
Error 3227: No function result type specified for function ”arg. 1

The first time you declare a function you have to declare it completely, including all parameters and the result type.
Error 3228: Specialization is only supported for generic types

Types which are not generics cannot be specialized.
Error 3229: Generics cannot be used as parameters when specializing generics

When specializing a generic, only non-generic types can be used as parameters.
Error 3230: Constants of objects containing a VMT are not allowed

If an object requires a VMT either because it contains a constructor or virtual methods, it’s not allowed to create constants of it. In TP and Delphi mode this is allowed for compatibility reasons.
Error 3231: Taking the address of labels defined outside the current scope isn’t allowed

It isn’t allowed to take the address of labels outside the current procedure.
Error 3233: Cannot initialize variables declared as external

Variables declared as external cannot be initialized with a default value.
Error 3234: Illegal function result type

Some types like file types cannot be used as function result.
Error 3235: No common type possible between ”arg. 1” and ”arg. 2

To perform an operation on integers, the compiler converts both operands to their common type, which appears to be an invalid type. To determine the common type of the operands, the compiler takes the minimum of the minimal values of both types, and the maximum of the maximal values of both types. The common type is then minimum..maximum.
Error 3236: Generics without specialization cannot be used as a type for a variable

Generics must be always specialized before being used as variable type.
Warning 3237: Register list is ignored for pure assembler routines

When using pure assembler routines, the list with modified registers is ignored.
Error 3238: Implements property must have class or interface type

A property which implements an interface must be of type class or interface.
Error 3239: Implements-property must implement interface of correct type, found ”arg. 1” expected ”arg. 2

A property which implements an interface actually implements a different interface.
Error 3240: Implements-property must have read specifier

A property which implements an interface must have at least a read specifier.
Error 3241: Implements-property must not have write-specifier

A property which implements an interface may not have a write specifier.
Error 3242: Implements-property must not have stored-specifier

A property which implements an interface may not have a stored specifier.
Error 3243: Implements-property used on unimplemented interface: ”arg. 1

The interface which is implemented by a property is not an interface implemented by the class.
Error 3244: Floating point not supported for this target

The compiler parsed a floating point expression, but it is not supported.
Error 3245: Class ”arg. 1” does not implement interface ”arg. 2

The delegated interface is not implemented by the class given in the implements clause.
Error 3246: Type used by implements must be an interface

The implements keyword must be followed by an interface type.
Error 3247: Variables cannot be exported with a different name on this target, add the name to the declaration using the ”export” directive (variable name: arg. 1, declared export name: arg. 2)

On most targets it is not possible to change the name under which a variable is exported inside the exports statement of a library. In that case, you have to specify the export name at the point where the variable is declared, using the export and alias directives.
Error 3248: Weak external symbols are not supported for the current target

A ”weak external” symbol is a symbol which may or may not exist at (either static or dynamic) link time. This concept may not be available (or implemented yet) on the current cpu/OS target.
Error 3249: Forward type definition does not match

Classes and interfaces being defined forward must have the same type when being implemented. A forward interface cannot be changed into a class.
Note 3250: Virtual method ”arg. 1” has a lower visibility (arg. 2) than parent class arg. 3(arg. 4)

The virtual method overrides an method that is declared with a higher visibility. This might give unexpected results. E.g., in case the new visibility is private then a call to “inherited” in a new child class will call the higher-visible method in a parent class and ignores the private method.
Error 3251: Fields cannot appear after a method or property definition, start a new visibility section first

Once a method or property has been defined in a class or object, you cannot define any fields afterwards without starting a new visibility section (such as public, private, etc.). The reason is that otherwise the source code can appear ambiguous to the compiler, since it is possible to use modifiers such as default and register also as field names.
Error 3252: Parameters or result types cannot contain local type definitions. Use a separate type definition in a type block.

In Pascal, types are not considered to be identical simply because they are semantically equivalent. Two variables or parameters are only considered to be of the same type if they refer to the same type definition. As a result, it is not allowed to define new types inside parameter lists, because then it is impossible to refer to the same type definition in the procedure headers of the interface and implementation of a unit (both procedure headers would define a separate type). Keep in mind that expressions such as “file of byte” or “string[50]” also define a new type.
Error 3253: ABSTRACT and SEALED conflict

ABSTRACT and SEALED cannot be used together in one declaration
Error 3254: Cannot create a descendant of the sealed class ”arg. 1

Sealed means that class cannot be derived by another class.
Error 3255: SEALED class cannot have an ABSTRACT method

Sealed means that class cannot be derived. Therefore no one class is able to override an abstract method in a sealed class.
Error 3256: Only virtual methods can be final

You are declaring a method as final, when it is not declared to be virtual.
Error 3257: Final method cannot be overridden: ”arg. 1

You are trying to override a virtual method of a parent class that does not exist.
Error 3258: Only one message can be used per method.

It is not possible to associate multiple messages with a single method.
Error 3259: Invalid enumerator identifier: ”arg. 1

Only ”MoveNext” and ”Current” enumerator identifiers are supported.
Error 3260: Enumerator identifier required

”MoveNext” or ”Current” identifier must follow the enumerator modifier.
Error 3261: Enumerator MoveNext pattern method is not valid. Method must be a function with the Boolean return type and no required arguments.

”MoveNext” enumerator pattern method must be a function with Boolean return type and no required arguments
Error 3262: Enumerator Current pattern property is not valid. Property must have a getter.

”Current” enumerator pattern property must have a getter
Error 3263: Only one enumerator MoveNext method is allowed per class/object

Class or Object can have only one enumerator MoveNext declaration.
Error 3264: Only one enumerator Current property is allowed per class/object

Class or Object can have only one enumerator Current declaration.
Error 3265: For in loop cannot be used for the type ”arg. 1

For in loop can be used not for all types. For example it cannot be used for the enumerations with jumps.
Error 3266: Objective-C messages require their Objective-C selector name to be specified using the ”message” directive.

Objective-C messages require their Objective-C name (selector name) to be specified using the message ‘someName:’ procedure directive. While bindings to other languages automatically generate such names based on the identifier you use (by replacing all underscores with colons), this is unsafe since nothing prevents an Objective-C method name to contain actual colons.
Error 3267: Objective-C does not have formal constructors nor destructors. Use the alloc, initXXX and dealloc messages.

The Objective-C language does not have any constructors or destructors. While there are some messages with a similar purpose (such as init and dealloc), these cannot be identified using automatic parsers and do not guarantee anything like Pascal constructors/destructors (e.g., you have to take care of only calling “designated” inherited “constructors”). For these reasons, we have opted to follow the standard Objective-C patterns for instance creation/destruction.
Error 3268: Message name is too long (max. 255 characters)

Due to compiler implementation reasons, message names are currently limited to 255 characters.
Error 3269: Objective-C message symbol name for ”arg. 1” is too long

Due to compiler implementation reasons, mangled message names (i.e., the symbol names used in the assembler code) are currently limited to 255 characters.
Hint 3270: Defining a new Objective-C root class. To derive from another root class (e.g., NSObject), specify it as the parent class.

If no parent class is specified for an Object Pascal class, then it automatically derives from TObject. Objective-C classes however do not automatically derive from NSObject, because one can have multiple root classes in Objective-C. For example, in the Cocoa framework both NSObject and NSProxy are root classes. Therefore, you have to explicitly define a parent class (such as NSObject) if you want to derive your Objective-C class from it.
Error 3271: Objective-C classes cannot have published sections.

In Object Pascal, “published” determines whether or not RTTI is generated. Since the Objective-C runtime always needs RTTI for everything, this specified does not make sense for Objective-C classes.
Fatal error 3272: This module requires an Objective-C mode switch to be compiled

This error indicates the use of Objective-C language features without an Objective-C mode switch active. Enable one via the -M command line switch, or the $modeswitch x directive.
Error 3273: Inherited methods can only be overridden in Objective-C and Java, add ”override” (inherited method defined in arg. 1)

Hint 3274: Inherited methods can only be overridden in Objective-C and Java, add ”override” (inherited method defined in arg. 1).

It is not possible to reintroduce methods in Objective-C or Java like in Object Pascal. Methods with the same name always map to the same virtual method entry. In order to make this clear in the source code, the compiler always requires the override directive to be specified when implementing overriding Objective-C or Java methods in Pascal. If the implementation is external, this rule is relaxed because Objective-C and Java do not have any override-style keyword (since it’s the default and only behaviour in these languages), which makes it hard for automated header conversion tools to include it everywhere. The type in which the inherited method is defined is explicitly mentioned, because this may either be an objcclass or an objccategory in case of Objective-C.
Error 3275: Message name ”arg. 1” in inherited class is different from message name ”arg. 2” in current class.

An overriding Objective-C method cannot have a different message name than an inherited method. The reason is that these message names uniquely define the message to the Objective-C runtime, which means that giving them a different message name breaks the “override” semantics.
Error 3276: It is not yet possible to make unique copies of Objective-C or Java types

Duplicating an Objective-C or Java type using type x = type y; is not yet supported. You may be able to obtain the desired effect using type x = objcclass(y) end; resp. type x = class(y) end; instead.
Error 3277: Objective-C categories and Object Pascal class helpers cannot be used as types

It is not possible to declare a variable as an instance of an Objective-C category or an Object Pascal class helper. A category/class helper adds methods to the scope of an existing class, but does not define a type by itself. An exception of this rule is when inheriting an Object Pascal class helper from another class helper.
Error 3278: Categories do not override, but replace methods. Use ”reintroduce” instead.

Error 3279: Replaced methods can only be reintroduced in Objective-C, add ”reintroduce” (replaced method defined in arg. 1).

Hint 3280: Replaced methods can only be reintroduced in Objective-C, add ”reintroduce” (replaced method defined in arg. 1).

A category replaces an existing method in an Objective-C class, rather than that it overrides it. Calling an inherited method from an category method will call that method in the extended class’ parent, not in the extended class itself. The replaced method in the original class is basically lost, and can no longer be called or referred to. This behaviour corresponds somewhat more closely to reintroduce than to override (although in case of reintroduce in Object Pascal, hidden methods are still reachable via inherited). The type in which the inherited method is defined is explicitly mentioned, because this may either be an objcclass or an objccategory.
Error 3281: Getter for implements interface must use the target’s default calling convention.

Interface getters are called via a helper in the run time library, and hence have to use the default calling convention for the target (register on i386 and x86_64, stdcall on other architectures).
Error 3282: Typed files cannot contain reference-counted types.

The data in a typed file cannot be of a reference counted type (such as ansistring or a record containing a field that is reference counted).
Error 3283: Operator is not overloaded: arg. 2arg. 1

You are trying to use an overloaded operator when it is not overloaded for this type.
Error 3284: Operator is not overloaded: ”arg. 1arg. 2arg. 3

You are trying to use an overloaded operator when it is not overloaded for this type.
Error 3285: Expected another arg. 1array elements

When declaring a typed constant array, you provided to few elements to initialize the array
Error 3286: String constant too long while ansistrings are disabled

Only when a piece of code is compiled with ansistrings enabled ({$H+}), string constants longer than 255 characters are allowed.
Error 3287: Type cannot be used as univ parameter because its size is unknown at compile time: ”arg. 1

univ parameters are compatible with all values of the same size, but this cannot be checked in case a parameter’s size is unknown at compile time.
Error 3288: Only one class constructor can be declared in class: ”arg. 1

You are trying to declare more than one class constructor but only one class constructor can be declared.
Error 3289: Only one class destructor can be declared in class: ”arg. 1

You are trying to declare more than one class destructor but only one class destructor can be declared.
Error 3290: Class constructors cannot have parameters

You are declaring a class constructor with a parameter list. Class constructor methods cannot have parameters.
Error 3291: Class destructors cannot have parameters

You are declaring a class destructor with a parameter list. Class destructor methods cannot have parameters.
Fatal error 3292: This construct requires the \{\$modeswitch objectivec1\} mode switch to be active

Objective-Pascal constructs are not supported when {$modeswitch ObjectiveC1} is not active.
Error 3293: Unicodechar/string constants cannot be converted to ansi/shortstring at compile-time

It is not possible to use unicodechar and unicodestring constants in constant expressions that have to be converted into an ansistring or shortstring at compile time, for example inside typed constants. The reason is that the compiler cannot know what the actual ansi encoding will be at run time.
Error 3294: For-in Objective-Pascal loops require \{\$modeswitch ObjectiveC2\} to be active

Objective-C “fast enumeration” support was added in Objective-C 2.0, and hence the appropriate modeswitch has to be activated to expose this feature. Note that Objective-C 2.0 programs require Mac OS X 10.5 or later.
Error 3295: The compiler cannot find the NSFastEnumerationProtocol or NSFastEnumerationState type in the CocoaAll unit

Objective-C for-in loops (fast enumeration) require that the compiler can find a unit called CocoaAll that contains definitions for the NSFastEnumerationProtocol and NSFastEnumerationState types. If you get this error, most likely the compiler is finding and loading an alternate CocoaAll unit.
Error 3296: Typed constants of the type ’procedure is nested’ can only be initialized with NIL and global procedures/functions

A nested procedural variable consists of two components: the address of the procedure/function to call (which is always known at compile time), and also a parent frame pointer (which is never known at compile time) in case the procedural variable contains a reference to a nested procedure/function. Therefore such typed constants can only be initialized with global functions/procedures since these do not require a parent frame pointer.
Fatal error 3297: Declaration of generic inside another generic is not allowed

At the moment, scanner supports recording of only one token buffer at the time (guarded by internal error 200511173 in tscannerfile.startrecordtokens). Since generics are implemented by recording tokens, it is not possible to have declaration of a generic (type or method) inside another generic.
Error 3298: Forward declaration ”arg. 1” must be resolved before a class can conform to or implement it

An Objective-C protocol or Java Interface must be fully defined before classes can conform to it. This error occurs in the following situation (example for Objective-C, but the same goes for Java interfaces):
  Type MyProtocol = objcprotoocl;  
       ChildClass = Class(NSObject,MyProtocol)  
         ...  
       end;  
 

where MyProtocol is declared but not defined.

Error 3299: Record types cannot have published sections

Published sections can be used only inside classes.
Error 3300: Destructors are not allowed in records or helpers

Destructor declarations are not allowed in records or helpers.
Error 3301: Class methods must be static in records

Class methods declarations are not allowed in records without static modifier. Records have no inheritance and therefore non static class methods have no sense for them.
Error 3302: Parameterless constructors are not allowed in records or record/type helpers

Constructor declarations with no arguments are not allowed in records or record/type helpers.
Error 3303: Either the result or at least one parameter must be of type ”arg. 1

It is required that either the result of the routine or at least one of its parameters be of the specified type. For example class operators either take an instance of the structured type in which they are defined, or they return one.
Error 3304: Type parameters may require initialization/finalization - cannot be used in variant records

Type parameters may be specialized with types which (e.g. ansistring) need initialization/finalization code which is implicitly generated by the compiler.
Error 3305: Variables being declared as external cannot be in a custom section

A section directive is not valid for variables being declared as external.
Error 3306: Non-static and non-global variables cannot have a section directive

A variable placed in a custom section is always statically allocated so it must be either a static or global variable.
Error 3307: ”arg. 1” is not allowed in helper types

Some directives and specifiers like ”virtual”, ”dynamic”, ”override” are not allowed inside helper types in mode ObjFPC (they are ignored in mode Delphi), because they have no meaning within helpers. Also ”abstract” isn’t allowed in either mode.
Error 3308: Class constructors are not allowed in helpers

Class constructor declarations are not allowed in helpers.
Error 3309: The use of ”inherited” is not allowed in a record

As records don’t support inheritance the use of ”inherited” is prohibited for these as well as for record helpers (in mode ”Delphi” only).
Error 3310: Type declarations are not allowed in local or anonymous records

Records with types must be defined globally. Types cannot be defined inside records which are defined in a procedure or function or in anonymous records.
Error 3311: Duplicate implements clause for interface ”arg. 1

A class may delegate an interface using the ”implements” clause only to a single property. Delegating it multiple times is a error.
Error 3312: Interface ”arg. 1” cannot be delegated by ”arg. 2”, it already has method resolutions

Method resolution clause maps a method of an interface to a method of the current class. Therefore the current class has to implement the interface directly. Delegation is not possible.
Error 3313: Interface ”arg. 1” cannot have method resolutions, ”arg. 2” already delegates it

Method resolution is only possible for interfaces that are implemented directly, not by delegation.
Error 3314: Invalid codepage

When declaring a string with a given codepage, the range of valid codepages values is limited to 0 to 65535.
Error 3315: Only fields (var-sections) and constants can be final in object types

A final (class) field must be assigned a single value in the (class) constructor, and cannot be overwritten afterwards. A final (typed) constant is read-only.
Error 3316: Final fields are currently only supported for external classes

Support for final fields in non-external classes requires a full data flow analysis implementation in FPC, which it currently still lacks.
Error 3317: Typed constants are not allowed here, only formal constants are

Java interfaces define a namespace in which formal constant can be defined, but since they define no storage it is not possible to define typed constants in them (those are more or less the same as initialised class fields).
Error 3318: Constructors are not automatically inherited in the JVM; explicitly add a constructor that calls the inherited one if you need it

Java does not automatically add inherited constructors to child classes, so that they can be hidden. For compatibility with external Java code, FPC does the same. If you require access to the same constructors in a child class, define them in the child class and call the inherited one from there.
Parsing internally generated code: arg. 1

The compiler sometimes internally constructs Pascal code that is subsequently injected into the program. These messages display such code, in order to help with debugging errors in them.
Error 3320: This language feature is not supported on managed VM targets

Certain language features are not supported on targets that are managed virtual machines.
Error 3321: Calling a virtual constructor for the current instance inside another constructor is not possible on the JVM target

The JVM does not natively support virtual constructor. Unforunately, we are not aware of a way to emulate them in a way that makes it possible to support calling virtual constructors for the current instance inside another constructor.
Error 3322: Overriding method ”arg. 1” cannot have a lower visibility (arg. 2) than in parent class arg. 3(arg. 4)

The JVM does not allow lowering the visibility of an overriding method.
Error 3323: Procedure/Function declared with call option NOSTACKFRAME but without ASSEMBLER

nostackframe call modifier is supposed to be used in conjunction with assembler.
Error 3324: Procedure/Function declared with call option NOSTACKFRAME but local stack size is arg. 1

nostackframe call modifier used without assembler modifier might still generate local stack needs.
Error 3325: Cannot generate property getter/setter arg. 1because its name clashes with existing identifier arg. 2

Automatically generated getters/setters cannot have the same name as existing identifiers, because this may change the behaviour of existing code.
Warning 3326: Automatically generated property getter/setter arg. 1overrides the same-named getter/setter in class arg. 2

Automatically generated property getters/setters on the JVM platform are virtual methods, because the JVM does not support non-virtual methods that can be changed in child classes. This means that if a child class changes an inherited property definition, the behaviour of that property can change compared to native targets since even if a variable is declared as the parent type, by calling the virtual method the getter from the child will be used. This is different from the behaviour on native targets or when not activating automatically generated setters/getters, because in that case only the declared type of a variable influences the property behaviour.
Warning 3327: Case mismatch between declared property getter/setter arg. 1and automatically constructed name arg. 2, not changing declared name

If a property’s specified getter/setter already corresponded to the naming convention specified by the automatic getter/setter generation setting except in terms of upper/lowercase, the compiler will print a warning because it cannot necessarily change that other declaration itself not can it add one using the correct case (it could conflict with the original declaration). Manually correct the case of the getter/setter to conform to the desired coding rules. TChild overrides
Error 3328: Constants declarations are not allowed in local or anonymous records

Records with constants must be defined globally. Constants cannot be defined inside records which are defined in a procedure or function or in anonymous records.
Error 3329: Method declarations are not allowed in local or anonymous records

Records with methods must be defined globally. Methods cannot be defined inside records which are defined in a procedure or function or in anonymous records.
Error 3330: Property declarations are not allowed in local or anonymous records

Records with properties must be defined globally. Properties cannot be defined inside records which are defined in a procedure or function or in anonymous records.
Error 3331: Class member declarations are not allowed in local or anonymous records

Records with class members must be defined globally. Class members cannot be defined inside records which are defined in a procedure or function or in anonymous records.
Error 3332: Visibility section ”arg. 1” not allowed in records

The visibility sections (protected) and (strict protected) are only useful together with inheritance. Since records do not support that they are forbidden.
Error 3333: Directive ”arg. 1” not allowed here

This directive is not allowed in the given context. E.g. ”static” is not allowed for instance methods or class operators.
Error 3334: Assembler blocks not allowed inside generics

The use of assembler blocks/routines is not allowed inside generics.
Error 3335: Properties can be only static, global or inside structured types

Properties cannot be declared local, only global, using the static directive or inside structured types.
Error 3336: Overloaded routines have the same mangled name

Some platforms, such as the JVM platform, encode the parameters in the routine name in a prescribed way, and this encoding may map different Pascal types to the same encoded (a.k.a. “mangled”) name. This error can only be solved by removing or changing the conflicting definitions’ parameter declarations or routine names.
Error 3337: Default values can only be specified for value, const and constref parameters

A default parameter value allows you to not specify a value for this parameter when calling the routine, and the compiler will instead pass the specified default (constant) value. As a result, default values can only be specified for parameters that can accept constant values.
Warning 3338: Pointer type ”arg. 1” ignored

The specified pointer type modifier is ignored, because it is not supported on the current platform. This happens, for example, when a far pointer is declared on a non-x86 platform.
Error 3339: Generic template in interface section references symbol in implementation section

A generic declared in the interface section of a unit must not reference symbols that belong solely to the implementation section of that unit.
Unit arg. 1has been already compiled meanwhile.

This tells you that the recursive reading of the uses clauses triggered already a compilation of the current unit, so the current compilation can be aborted.
Error 3341: Explicit implementation of methods for specializations of generics is not allowed

Methods introduced in a generic must be implemented for the generic. It is not possible to implement them only for specializations.
Error 3342: Generic methods are not allowed in interfaces

Generic methods are not allowed in interfaces, because there is no way to specialize a suitable implementation.
Error 3343: Generic methods can not be virtual

Generic methods can not be declared as virtual as there’d need to be a VMT entry for each specialization. This is however not possible with a static VMT.
Error 3344: Dynamic packages not supported for target OS

Support for dynamic packages is not implemented for the specified target OS or it is at least not tested and thus disabled.
Error 3345: The HardFloat directive cannot be used if soft float code is generated or fpu emulation is turned on

The HardFloat directive can only be used if an instruction set is used which supports floating point operations.
Error 3346: Index arg. 1is not a valid internal function index

The index specified for the compilerproc directive is not an index that’s recognized by the compiler.
Warning 3347: Operator overload hidden by internal operator: ”arg. 1arg. 2arg. 3

An operator overload is defined for the specified overload, but the internal overload by the compiler takes precedence. This only happens for operators that had been overloadable before (e.g. dynamic array + dynamic array), but aren’t anymore due to an internal operator being defined while this behavior is controllable by a modeswitch (in case of dynamic arrays that is the modeswitch ArrayOperators).
Error 3348: Thread variables inside classes or records must be class variables

A threadvar section inside a class or record was started without it being prefixed by class.
Error 3349: Only static methods and static variables can be referenced through an object type

This error occurs in a situation like the following:
 Type  
    TObj = object  
      procedure test;  
    end;  
 
 begin  
   TObj.test;  
 

test is not a static method and hence cannot be called through a type, but only using an instance.

Error 3350: Cannot redeclare C-style variadic function ”arg. 1” as external on this platform; make its first declaration already external

If a function is declared normally in the interface or as a forward declaration, and then later as external, the compiler must generate a stub that calls the external function. Due to code generation limitations, this cannot be done on some platforms. Even on platforms where it is supported, this is quite inefficient.
Error 3351: Unbound custom attribute: ”arg. 1”.

A custom attribute is defined, but there is no identifier to bind it to.
Error 3352: Enumeration symbols can only have values in the range of -2ˆ3  1 to 2ˆ3  1-1

The size of enumeration values is limited to 4 bytes. As the value can be signed, the range of valid values is limited to a signed 32 bit value (i.e. longint).
Warning 3353: Enumeration symbols can only have values in the range of -2ˆ3  1 to 2ˆ3  1-1

The size of enumeration values is limited to 4 bytes. As the value can be signed, the range of valid values is limited to a signed 32 bit value (i.e. longint).
Error 3354: Implementing a method for type ”arg. 1” declared in another unit

This error occurs if one tries to define a method for a type that is originally declared in a different unit.
Error 3355: Generic constraint not allowed here

At the current location specifying a constraint is not allowed. For example in delphi mode, a constraint might not be specified in the header of the implementation.
Error 3356: Explicit location is too small for parameter

AmigaOS/MorphOS syscall specific: for int64/qword parameter only a single register location is specified
Error 3357: Explicit location size is larger than required by parameter

AmigaOS/MorphOS syscall specific: for a parameter which is smaller than 64 bits, a register pair is specified
Error 3358: Only data registers are supported for explicit location register pairs

AmigaOS/MorphOS syscall specific: for 64 bit register pairs, only data registers are supported
Error 3359: Only consecutive registers are supported for explicit location register pairs

MorphOS syscall specific: only consecutive (f.e.: d1-d2) registers are supported for 64 bit register pairs
Error 3360: Constructors cannot take type parameters

The use of type parameters in constructors is not allowed.
Error 3361: Raise in subroutines declared as noreturn is not allowed

noreturn tells the compiler that the activation scope of the subroutine is never left. This includes exceptions goto or any other mean. While the compiler cannot detect all such cases some are trivial and the compiler gives an error.
Error 3362: Directive section not allowed for this target

Only some targets (e.g. Embedded and FreeRTOS) support the section directive.
Error 3363: Absolute variable cannot reference itself

Error 3364: Syntax of syscall directive not supported by current target

On a certain target, not all syntax variants of the syscall directive make sense and thus those making no sense are not supported Declarations like var i: Integer absolute i; are not allowed
Warning 3365: This property will not be published

Published property is ignored
Error 3366: WebAssembly reference types can only be passed by value

WebAssembly reference types don’t have an in-memory representation and can only be passed by value.
Error 3367: Declaring exports as ’promising’ is WebAssembly-specific and is not supported on the current platform

Promising exports are WebAssembly-specific. They are not allowed on other platforms.
Error 3368: Declaring externals as ’suspending’ is WebAssembly-specific and is not supported on the current platform

Suspending externals are WebAssembly-specific. They are not allowed on other platforms.
Warning 3369: Reducing Widechar set to single-byte AnsiChar set.

The base type of a set can only have 255 elements. Sets of wide characters are reduced to sets of 1-byte characters.
Using ’string’ alias is not allowed in the system unit. Use short-,ansi- or unicodestring.

As a safeguard, the system unit may only use basic string types, not the string alias which is dependent on the mode in which a unit is compiled.