Skip to content

Preprocessor enters endless loop with #xcommand NOTHING [<*any*>] => NOTHING #1960

@cpyrgas

Description

@cpyrgas

Following code in the XPP dialect causes the compiler to enter an endless loop:

PROCEDURE Main
BEGIN SEQUENCE  
ENDSEQUENCE

problem is because of the UDC

#xcommand ENDSEQUENCE1 => END SEQUENCE

Same problem can be reproduced in any dialect with

#xcommand NOTHING [<*any*>]  => NOTHING
FUNCTION Start() AS VOID STRICT
NOTHING

Metadata

Metadata

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions