Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0004535Clover Designer(No Category)public2010-07-13 16:112010-08-20 11:13
Reporterpnajvar 
Assigned Tomzatopek 
PrioritynormalSeveritytextReproducibilityhave not tried
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target Versionrel-3-0-0Fixed in Versionrel-3-0-0 
Summary0004535: CTL2: Misleading syntax error message when "return" statement is missing
DescriptionPlease see attached screenshot - when a "non-void" function has no return statement, a misleading error message is shown and function declaration is underlined as error.

"Function must return a result of type 'integer'" -> "Missing 'return' statement (integer)"
TagsNo tags attached.
OTRS_Ticket_ID
Time estimate (manhours)
Time duration (manhours)
Completion status10
Attached Filespng file icon CropperCapture[66].png [^] (22,077 bytes) 2010-07-13 16:11

- Relationships
has duplicate 0004536closedmzatopek CTL2: function integer is not declared 

-  Notes
(0008432)
jlehotsky (manager)
2010-07-14 19:55

I don't see a problem in the original message, in Java, it's the same and it clearly states the function must return something. (Anyway, "Missing return" is not exactly the right message I think, as there are more ways to exit the function - raise_error,..)

- Issue History
Date Modified Username Field Change
2010-07-13 16:11 pnajvar New Issue
2010-07-13 16:11 pnajvar Status new => assigned
2010-07-13 16:11 pnajvar Assigned To => mzatopek
2010-07-13 16:11 pnajvar File Added: CropperCapture[66].png
2010-07-13 16:12 pnajvar Description Updated View Revisions
2010-07-13 16:58 mzatopek Status assigned => resolved
2010-07-13 16:58 mzatopek Fixed in Version => rel-3-0-0
2010-07-13 16:58 mzatopek Resolution open => fixed
2010-07-14 12:54 pnajvar Relationship added has duplicate 0004536
2010-07-14 13:01 pnajvar Relationship deleted has duplicate 0004536
2010-07-14 13:01 pnajvar Relationship added has duplicate 0004536
2010-07-14 19:55 jlehotsky Note Added: 0008432
2010-08-20 11:13 twaller Status resolved => closed


Copyright © 2000 - 2010 MantisBT Group
Powered by Mantis Bugtracker