Thread overview
[Bug 65] Debug info wrong for __modtest
Jun 27, 2013
Iain Buclaw
Feb 16, 2014
Johannes Pfau
Feb 19, 2014
Johannes Pfau
June 27, 2013
http://bugzilla.gdcproject.org/show_bug.cgi?id=65

--- Comment #1 from Iain Buclaw <ibuclaw@gdcproject.org> 2013-06-27 17:40:31 UTC ---
A test for you that doesn't require importing modules:
---
void main() {}

unittest
{
    int* a = null;
    *a = 10;
}

unittest
{
    int* a = null;
    *a = 10;
}
---

See comment in d-objfile.cc(build_call_function):

// If there is only one function, just return that.

-- 
Configure bugmail: http://bugzilla.gdcproject.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
February 16, 2014
http://bugzilla.gdcproject.org/show_bug.cgi?id=65

Johannes Pfau <johannespfau@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED

--- Comment #2 from Johannes Pfau <johannespfau@gmail.com> 2014-02-16 10:31:12 GMT ---
Found it. The DECL line number is actually correct, but we build the function body outside of the ::toIR functions and therefore set_input_location / doLineNote is not updated correctly.

-- 
Configure bugmail: http://bugzilla.gdcproject.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
February 19, 2014
http://bugzilla.gdcproject.org/show_bug.cgi?id=65

Johannes Pfau <johannespfau@gmail.com> changed:

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

--- Comment #3 from Johannes Pfau <johannespfau@gmail.com> 2014-02-19 18:34:18 GMT ---
https://github.com/D-Programming-GDC/GDC/commit/a63691f05dd8c96be4da1359da71ca18fc97e355

-- 
Configure bugmail: http://bugzilla.gdcproject.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.