Bug 10539 – [REG][2.063] Implicit pointer to array dereference for .ptr property fails

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-07-04T01:39:00Z
Last change time
2013-07-04T18:21:13Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
monarchdodra

Comments

Comment #0 by monarchdodra — 2013-07-04T01:39:36Z
----------------------- void main() { int[2][2] a; int* p1 = a.ptr.ptr; //error int* p2 = (*a.ptr).ptr; //OK } ----------------------- 2.063 and 2.063.2 produce: Error: cannot resolve type for &(*& a)[0] This used to work up to 2.062.
Comment #1 by k.hara.pg — 2013-07-04T02:09:56Z
Comment #2 by github-bugzilla — 2013-07-04T13:24:51Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/99265ca322625f9d76f2fcc530c83845d5485b37 Issue 10539 - Implicit pointer to array dereference for .ptr property fails https://github.com/D-Programming-Language/dmd/commit/c7e0c6ef1085ce74e373b6096d2af40c958e32ec Merge pull request #2296 from 9rnsr/fix10539 [REG2.063] Issue 10539 - Implicit pointer to array dereference for .ptr property fails
Comment #3 by github-bugzilla — 2013-07-04T18:21:13Z
Commit pushed to 2.063 at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/7e86fd874a6acc0a4dcc1250f37d15b9dbf40b97 Merge pull request #2296 from 9rnsr/fix10539 [REG2.063] Issue 10539 - Implicit pointer to array dereference for .ptr property fails Conflicts: test/runnable/xtest46.d