[Issue 4270] New: Missing line number in 'can only catch class objects' error message
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Jun 4 12:51:34 PDT 2010
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: nobody at puremagic.com
ReportedBy: clugdbug at yahoo.com.au
--- Comment #0 from Don <clugdbug at yahoo.com.au> 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: -------
More information about the Digitalmars-d-bugs
mailing list