www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 12201] New: Crash on bad import within mixed in template

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

           Summary: Crash on bad import within mixed in template
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: ice
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: thecybershadow gmail.com


--- Comment #0 from Vladimir Panteleev <thecybershadow gmail.com> 2014-02-19
08:43:46 EET ---
template T()
{
    std.foo bar;
}

struct S
{
    mixin T;
    import std.stdio;
}

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


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Crash on bad import within  |Crash on forward reference
                   |mixed in template           |import within mixed in
                   |                            |template


--- Comment #1 from Kenji Hara <k.hara.pg gmail.com> 2014-02-19 02:26:54 PST ---
Even if the import is valid, it will crash.

template T()
{
    core.stdc.stdio.FILE* fp;
}

struct S
{
    mixin T;
    import core.stdc.stdio;
}

So this is a forward reference issue.

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


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull
           Severity|normal                      |major


--- Comment #2 from Kenji Hara <k.hara.pg gmail.com> 2014-02-19 02:28:26 PST ---
https://github.com/D-Programming-Language/dmd/pull/3286

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



--- Comment #3 from github-bugzilla puremagic.com 2014-02-19 16:20:52 PST ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/b536fd67871716a3ad6dd03792be91a6c1e95194
fix Issue 12201 - Crash on forward reference import within mixed in template

https://github.com/D-Programming-Language/dmd/commit/544577d3a815185fa087db30cfa666d4c737da0d
Merge pull request #3286 from 9rnsr/fix12201

Issue 12201 - Crash on forward reference import within mixed in template

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


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



--- Comment #4 from github-bugzilla puremagic.com 2014-02-22 08:33:15 PST ---
Commit pushed to 2.065 at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/8aed085825dbf3dbd7ae90b848fa6eb2458bd9a0
Merge pull request #3286 from 9rnsr/fix12201

Issue 12201 - Crash on forward reference import within mixed in template

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