www.digitalmars.com         C & C++   DMDScript  

D.gnu - [Bug 65] New: Debug info wrong for __modtest

http://bugzilla.gdcproject.org/show_bug.cgi?id=65

             Bug #: 65
           Summary: Debug info wrong for __modtest
    Classification: Unclassified
           Product: GDC
           Version: development
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: minor
          Priority: Normal
         Component: gdc
        AssignedTo: ibuclaw gdcproject.org
        ReportedBy: johannespfau gmail.com


The debug info for this program is a little strange:
---------
//import std.stdio;
//import std.base64;
void main() {}

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

If both imports are commented the modtest function doesn't show up in stack
traces at all.

If std.stdio is imported:
0x405cd2 test2._D5test29__modtestFZv
    /opt/gdc/include/d/4.8.1/std/conv.d:104

If std.base64 is imported instead:
0x405d52 test2._D5test29__modtestFZv
    /opt/gdc/include/d/4.8.1/std/format.d:1211

Probably produces similar results when importing any other random module as
well.

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