www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 12280] New: Redundant "template instance ... error instantiating" messages

reply d-bugmail puremagic.com writes:
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



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: -------
Feb 28 2014
next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12280


Kenji Hara <k.hara.pg gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull



https://github.com/D-Programming-Language/dmd/pull/3373

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 10 2014
prev sibling next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12280




Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/75356c630f43b8c630ca79cf60d66f3714cfaa72
fix Issue 12280 - Redundant "template instance ... error instantiating"
messages

https://github.com/D-Programming-Language/dmd/commit/fbffd20a8587888e0dafd8353e6cc23b910932fe


Issue 12280 - Redundant "template instance ... error instantiating" messages

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 10 2014
prev sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12280


Kenji Hara <k.hara.pg gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 10 2014