www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 10178] New: Compiler segfault with zero-length tuple comparison

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

           Summary: Compiler segfault with zero-length tuple comparison
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: ice, rejects-valid
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: k.hara.pg gmail.com


--- Comment #0 from Kenji Hara <k.hara.pg gmail.com> 2013-05-26 18:44:25 PDT ---
This code:

struct S {}
void main()
{
    S s;
    assert(s.tupleof == s.tupleof);
}

Would cause segfault during compilation.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 26 2013
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10178


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

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


--- Comment #1 from Kenji Hara <k.hara.pg gmail.com> 2013-05-26 18:49:10 PDT ---
https://github.com/D-Programming-Language/dmd/pull/2082

This is a regression caused by implementing issue 9873.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 26 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10178


Andrei Alexandrescu <andrei erdani.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |andrei erdani.com
         Resolution|                            |FIXED


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 26 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10178



--- Comment #2 from Andrei Alexandrescu <andrei erdani.com> 2013-05-26 19:01:56
PDT ---
Oops I marked this as resolved before merging the code in, will reopen if Kenji
doesn't respond in a few minutes.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 26 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10178



--- Comment #3 from github-bugzilla puremagic.com 2013-05-26 19:20:35 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/0fea1d8b0e6e2c3befe1ecea29b3646c57015591
fix Issue 10178 - Compiler segfault with zero-length tuple comparison

https://github.com/D-Programming-Language/dmd/commit/9cb54d52ff53e3634b6715988ec09a4f6865e218
Merge pull request #2082 from 9rnsr/fix10178

[REG2.063a] Issue 10178 - Compiler segfault with zero-length tuple comparison

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 26 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10178



--- Comment #4 from github-bugzilla puremagic.com 2013-05-26 21:45:44 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/0d5bddae95174b8b8cc5636d7d433f0cef143818
Fix up for bug 10178

Treat side effect correctly

https://github.com/D-Programming-Language/dmd/commit/32943c738692c84312777fee02851a2fd02089d3
Merge pull request #2083 from 9rnsr/fix10178

Fix up for bug 10178

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 26 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10178



--- Comment #5 from github-bugzilla puremagic.com 2013-05-27 02:03:21 PDT ---
Commit pushed to 2.063 at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/e7da99729d37fdf53e469a21f5128130d692f9ea
Merge pull request #2082 from 9rnsr/fix10178

[REG2.063a] Issue 10178 - Compiler segfault with zero-length tuple comparison

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 27 2013
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10178



--- Comment #6 from github-bugzilla puremagic.com 2013-05-27 02:04:05 PDT ---
Commit pushed to 2.063 at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/44fc6690f7da831849af8c8350d22a568e7bb6be
Merge pull request #2083 from 9rnsr/fix10178

Fix up for bug 10178

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 27 2013