[Issue 3438] struct ctor with defaulted parameters should be rejected

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Dec 21 15:52:54 PST 2012


http://d.puremagic.com/issues/show_bug.cgi?id=3438


Andrej Mitrovic <andrej.mitrovich at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|wrong-code                  |accepts-invalid, pull
                 CC|                            |andrej.mitrovich at gmail.com
           Platform|Other                       |All
            Version|2.000                       |D2
         AssignedTo|nobody at puremagic.com        |andrej.mitrovich at gmail.com
            Summary|constructor with defaulted  |struct ctor with defaulted
                   |parameters ignored          |parameters should be
                   |                            |rejected
         OS/Version|Linux                       |All


--- Comment #4 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2012-12-21 15:52:48 PST ---
Changed what was basically an enhancement request into an accepts-invalid bug.
If the state of things change we can work on it later (if Walter green-lights
default ctors for structs), but for now all forms of default ctors in structs
must be rejected by the compiler.

https://github.com/D-Programming-Language/dmd/pull/1397

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


More information about the Digitalmars-d-bugs mailing list