www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11424] New: typedef on structs isn't caught

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

           Summary: typedef on structs isn't caught
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: andrej.mitrovich gmail.com


--- Comment #0 from Andrej Mitrovic <andrej.mitrovich gmail.com> 2013-11-02
18:50:54 PDT ---
-----
typedef struct S { }
void main() { }
-----

$ dmd -w test.d
 
For comparison: ----- typedef int I; void main() { } ----- $ dmd -w test.d
 test.d(1): Deprecation: use of typedef is deprecated; use alias instead
-- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Nov 02 2013
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=11424


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|typedef on structs isn't    |Regression (2.064 git-head)
                   |caught                      |typedef on structs isn't
                   |                            |caught
           Severity|normal                      |regression


--- Comment #1 from Andrej Mitrovic <andrej.mitrovich gmail.com> 2013-11-02
18:52:06 PDT ---
Well.. it is a git-head regression, I can't reproduce it in 2.063.2.

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


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |accepts-invalid, pull


--- Comment #2 from Kenji Hara <k.hara.pg gmail.com> 2013-11-03 00:27:46 PDT ---
The regression has been caused by fixing bug 11145.

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

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



--- Comment #3 from github-bugzilla puremagic.com 2013-11-03 07:19:46 PST ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/2a2fa477d09d5c7416ad98cb5615235d4c519efc
fix Issue 11424 - typedef on structs isn't caught

It should be caught even if the typedef keyword usage is meaningless.

https://github.com/D-Programming-Language/dmd/commit/05686c7184571fc931f8f79d859da219800d3e41
Merge pull request #2711 from 9rnsr/fix11424

[REG2.064a] Issue 11424 - typedef on structs isn't caught

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


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

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


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



--- Comment #4 from github-bugzilla puremagic.com 2013-11-03 07:50:54 PST ---
Commit pushed to 2.064 at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/7762f03709b8ceb0950f02d47cf4e703bdbabc6b
Merge pull request #2711 from 9rnsr/fix11424

[REG2.064a] Issue 11424 - typedef on structs isn't caught

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