[Issue 23466] New: -verrors=context should not show context for supplemental messages
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Nov 6 16:56:45 UTC 2022
https://issues.dlang.org/show_bug.cgi?id=23466
Issue ID: 23466
Summary: -verrors=context should not show context for
supplemental messages
Product: D
Version: D2
Hardware: x86
OS: Windows
Status: NEW
Severity: enhancement
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: nick at geany.org
Supplemental messages generally have no need to show the source line context.
Below, only the `Error:` lines actually benefit from context:
compiler\test\fail_compilation\diag8101.d:57: Error: function
`diag8101.f_0(int)` is not callable using argument types `()`
f_0();
^
compiler\test\fail_compilation\diag8101.d:57: too few arguments,
expected `1`, got `0`
f_0();
^
compiler\test\fail_compilation\diag8101.d:58: Error: none of the overloads of
`f_1` are callable using argument types `()`
f_1();
^
compiler\test\fail_compilation\diag8101.d:33: Candidates are:
`diag8101.f_1(int)`
void f_1(int);
^
compiler\test\fail_compilation\diag8101.d:34:
`diag8101.f_1(int, int)`
void f_1(int, int);
^
compiler\test\fail_compilation\diag8101.d:59: Error: none of the overloads of
`f_2` are callable using argument types `()`
f_2();
^
PR incoming.
--
More information about the Digitalmars-d-bugs
mailing list