| |
| Posted by Vladimir Panteleev | PermalinkReply |
|
Vladimir Panteleev
| https://d.puremagic.com/issues/show_bug.cgi?id=12280
Summary: Redundant "template instance ... error instantiating"
messages
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Keywords: diagnostic
Severity: enhancement
Priority: P3
Component: DMD
AssignedTo: nobody@puremagic.com
ReportedBy: thecybershadow@gmail.com
--- Comment #0 from Vladimir Panteleev <thecybershadow@gmail.com> 2014-03-01 00:24:41 EET ---
Consider the program:
/////// test.d ///////
void f(int i)()
{
static if (i < 10)
f!(i+1);
else
nonexistent();
}
alias f0 = f!0;
//////////////////////
When compiled, the compiler output is:
test.d(6,3): Error: undefined identifier nonexistent
test.d(4,3): Error: template instance test.f!10 error instantiating
test.d(9,12): 11 recursive instantiations from here: f!0
test.d(4,3): Error: template instance test.f!9 error instantiating
test.d(9,12): 10 recursive instantiations from here: f!0
test.d(4,3): Error: template instance test.f!8 error instantiating
test.d(9,12): 9 recursive instantiations from here: f!0
test.d(4,3): Error: template instance test.f!7 error instantiating
test.d(9,12): 8 recursive instantiations from here: f!0
test.d(4,3): Error: template instance test.f!6 error instantiating
test.d(9,12): 7 recursive instantiations from here: f!0
test.d(4,3): Error: template instance test.f!5 error instantiating
test.d(4,3): instantiated from here: f!4
test.d(4,3): instantiated from here: f!3
test.d(4,3): instantiated from here: f!2
test.d(4,3): instantiated from here: f!1
test.d(9,12): instantiated from here: f!0
test.d(4,3): Error: template instance test.f!4 error instantiating
test.d(4,3): instantiated from here: f!3
test.d(4,3): instantiated from here: f!2
test.d(4,3): instantiated from here: f!1
test.d(9,12): instantiated from here: f!0
test.d(4,3): Error: template instance test.f!3 error instantiating
test.d(4,3): instantiated from here: f!2
test.d(4,3): instantiated from here: f!1
test.d(9,12): instantiated from here: f!0
test.d(4,3): Error: template instance test.f!2 error instantiating
test.d(4,3): instantiated from here: f!1
test.d(9,12): instantiated from here: f!0
test.d(4,3): Error: template instance test.f!1 error instantiating
test.d(9,12): instantiated from here: f!0
However, only the first 3 lines describe the error adequately. The "template instance ... error instantiating" lines are redundant, as the template instantiation trace is printed already.
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
|