Thread overview
[Issue 8559] New: void and function type prints redundant error message with init property
Aug 18, 2012
Kenji Hara
Aug 19, 2012
Kenji Hara
Sep 24, 2012
Kenji Hara
August 18, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8559

           Summary: void and function type prints redundant error message
                    with init property
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: diagnostic
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: k.hara.pg@gmail.com


--- Comment #0 from Kenji Hara <k.hara.pg@gmail.com> 2012-08-18 12:30:20 PDT ---
void foo(){}
void main()
{
    auto x = void.init;
    auto y = typeof(foo).init;
}

Current output:
test.d(4): Error: void does not have an initializer
test.d(4): Error: void does not have a default initializer
test.d(5): Error: function does not have an initializer
test.d(5): Error: function does not have a default initializer

Expected:
test.d(4): Error: void does not have a default initializer
test.d(5): Error: function does not have a default initializer

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
August 19, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8559


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

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


--- Comment #1 from Kenji Hara <k.hara.pg@gmail.com> 2012-08-19 01:11:45 PDT ---
https://github.com/D-Programming-Language/dmd/pull/1090

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
August 20, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8559



--- Comment #2 from github-bugzilla@puremagic.com 2012-08-20 07:47:42 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/7c6f6eb30fb662753592621d99d14e7029cb904d
fix Issue 8559 - void and function type prints redundant error message with
init property

https://github.com/D-Programming-Language/dmd/commit/747efc636384ffb287a63004e7da45967d9db18b Merge pull request #1090 from 9rnsr/fix8559

Issue 8559 - void and function type prints redundant error message with init property

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
September 24, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8559


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
            Version|D2                          |D1 & D2
         Resolution|                            |FIXED


--- Comment #3 from Kenji Hara <k.hara.pg@gmail.com> 2012-09-23 18:52:22 PDT ---
Fixed in D1 branch: https://github.com/D-Programming-Language/dmd/commit/c819954c07c92c90caab5d833dc0881eb7f2a1eb

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