Page MenuHomeFeedback Tracker

Missing types in function prototype leads to cryptic compiler error
Assigned, UrgentPublic

Description

Forgetting to add a variable type in a function prototype leads to a cryptic error.

void SomeFunction(variable)
{
}

Resulting in

Expected ',' or ')', not a '{'

Details

Severity
None
Resolution
Open
Reproducibility
N/A
Operating System
Windows 10 x64
Category
General
Steps To Reproduce

void SomeFunction(variable)
{
}

Additional Information

Expected result is a clearer error stating the function prototype is unusable.

Event Timeline

antihax created this task.Jul 12 2023, 1:03 AM
Geez changed the task status from New to Assigned.Jul 14 2023, 10:34 AM