October 09 [Issue 24802] New: Wrong error message | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=24802 Issue ID: 24802 Summary: Wrong error message Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: normal Priority: P1 Component: dmd Assignee: nobody@puremagic.com Reporter: turkeyman@gmail.com struct S { ~this() nothrow; } void test() nothrow { goto skip; S r; skip: } error : cannot `goto` into `try` block test() is nothrow, S.~this() is nothrow. There should be no `try` blocks in sight... the message should be about skipping initialisation. -- |
Copyright © 1999-2021 by the D Language Foundation