Page MenuHomeFeedback Tracker

Enscript missmatched/excess brackets bug.
Closed, ResolvedPublic

Description

int fnA() { return (int)0.5); }
int fnB() { return (5+5)); }
array<int>> arr;

The above code compiles fine, even though it has missmatched brackets everywhere. Seems to be only not handled if used within a return statement, or template instantiation (third line). If used anywhere else (as far as i'm aware of), e.g.,

int a = (5+5));

an error is generated with "Invalid statement ')'".

Details

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

Compile

int fnA() { return (int)0.5); }
int fnB() { return (5+5)); }
array<int>> arr;
int a = (5+5));

Event Timeline

sharp1337 updated the task description. (Show Details)
sharp1337 edited Steps To Reproduce. (Show Details)
sharp1337 changed Category from General to Scripting.Aug 19 2022, 8:18 PM
Geez changed the task status from New to Assigned.Aug 30 2022, 1:27 PM
Geez closed this task as Resolved.Apr 26 2023, 2:43 PM
Geez claimed this task.
Geez added a subscriber: Geez.

Resolved for one of the future updates.