[Issue 10651] New: Throwing non-Throwable object causes ICE
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Jul 15 19:08:19 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10651
Summary: Throwing non-Throwable object causes ICE
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Keywords: ice
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: k.hara.pg at gmail.com
--- Comment #0 from Kenji Hara <k.hara.pg at gmail.com> 2013-07-15 19:08:19 PDT ---
Code:
void main()
{
alias T = int;
throw new T(); // ICE
}
Output:
test.d(4): Error: can only throw class objects derived from Throwable, not type
int*
assert statement.c(4894) cd
--
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