Page MenuHomeFeedback Tracker

Enscript does not forbid usage of keywords in identifiers.
Closed, ResolvedPublic

Description

No error is thrown when defining a class/enum with keyword as an identifier.

class int {}
enum float {}

the compiler does not throw any errors for the above.
trying to compile

class int : int {}

freezes the workbench, most likely due to circular reference not being caught here.

Details

Severity
None
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
General
Steps To Reproduce

compile

class int {}
class float {}

the below code freezes the workbench.

class int : int {}

Event Timeline

Geez changed the task status from New to Assigned.Sep 20 2022, 12:56 PM
Geez closed this task as Resolved.Apr 26 2023, 2:45 PM
Geez claimed this task.
Geez added a subscriber: Geez.

Fixed internally and the fix will appear in one of the future updates.