February 14, 2010
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


--- Comment #0 from Sönke Ludwig <ludwig@informatik.uni-luebeck.de> 2010-02-14 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: -------
February 15, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3802


Don <clugdbug@yahoo.com.au> changed:

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


--- Comment #1 from Don <clugdbug@yahoo.com.au> 2010-02-15 02:03:08 PST ---
*** 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: -------