www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 12345] New: byLine.popFront() fails with 'Internal error: backend/cod2.c 2200' when compiled with '-inline' switch

reply d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12345

           Summary: byLine.popFront() fails with 'Internal error:
                    backend/cod2.c 2200' when compiled with '-inline'
                    switch
           Product: D
           Version: D2
          Platform: x86_64
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: saurabh.das gmail.com


--- Comment #0 from Saurabh Das <saurabh.das gmail.com> 2014-03-11 02:42:20 PDT
---
Consider the file 'byLineError.d':

import std.stdio;

void main()
{
    auto f = File("test");
    f.byLine.popFront();
}


When I compile:

dmd byLineError.d --- succeeds

dmd -inline byLineError.d --- fails with 'Internal error: backend/cod2.c 2200'

I'm running dmd version "DMD64 D Compiler v2.065" on Linux. I don't have access
to Windows/OSX PCs to test it on those OSes.

Note that this variation works:
void main()
{
    auto f = File("test");
    auto x = f.byLine;
    x.popFront();
}

Thanks,
Saurabh

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


monarchdodra gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice
                 CC|                            |monarchdodra gmail.com


--- Comment #1 from monarchdodra gmail.com 2014-03-11 13:20:14 PDT ---
I'm replicating on HEAD, also for linux64.

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



--- Comment #2 from monarchdodra gmail.com 2014-03-11 13:30:35 PDT ---
I'm NOT replicating on win32.

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


monarchdodra gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         OS/Version|Linux                       |All


--- Comment #3 from monarchdodra gmail.com 2014-03-11 13:54:54 PDT ---
(In reply to comment #2)
 I'm NOT replicating on win32.

My bad, also replicating. -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Mar 11 2014