http://d.puremagic.com/issues/show_bug.cgi?id=4270
Summary: Missing line number in 'can only catch class objects'
error message
Product: D
Version: 2.041
Platform: Other
OS/Version: Windows
Status: NEW
Keywords: diagnostic, patch
Severity: normal
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Don <[email protected]> 2010-06-04 12:51:32 PDT ---
void bug4270()
{
try{} catch(int banana) {}
}
--
Error: can only catch class objects, not 'int'
--
PATCH:
statement.c 4197
void Catch::semantic(Scope *sc)
type = type->semantic(loc, sc);
if (!type->toBasetype()->isClassHandle())
- error("can only catch class objects, not '%s'", type->toChars());
+ error(loc, "can only catch class objects, not '%s'", type->toChars());
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------