www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 3802] New: Error message without line number when using struct initializers for a struct with constructors.

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

           Summary: Error message without line number when using struct
                    initializers for a struct with constructors.
           Product: D
           Version: 2.040
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: ludwig informatik.uni-luebeck.de



07:49:21 PST ---
Using the struct initializer syntax which is now forbidden for structs with
constructors results in an error message without line number information.

---
struct test {
    int f;

    this(int x){
        f = x;
    }
}

immutable test t2 = {1};
---

output:
Error: struct test has constructors, cannot use { initializers }, use test(
initializers ) instead

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 14 2010
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3802


Don <clugdbug yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE



*** This issue has been marked as a duplicate of issue 3662 ***

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