Bug 13049 – in template arguments the compiler fails to parse scope for function pointers arguments

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-07-05T18:56:00Z
Last change time
2015-06-17T21:03:50Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
code

Comments

Comment #0 by code — 2014-07-05T18:56:20Z
It's not possible to declare a function pointer type with scope arguments within a template argument list. enum mangle(T) = T.mangleof; alias Func = void function(scope int); // OK pragma(msg, mangle!Func); // OK pragma(msg, mangle!(void function(int))); // OK pragma(msg, mangle!(void function(scope int))); // NG
Comment #1 by k.hara.pg — 2014-07-06T09:47:14Z
Comment #2 by github-bugzilla — 2014-07-06T11:16:38Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/f743a781616d9a795cbc13cbd40d8f1051dcfe11 fix Issue 13049 - in template arguments the compiler fails to parse scope for function pointers arguments https://github.com/D-Programming-Language/dmd/commit/fd544ae62bc6156992e8c888951bf7f315f98572 Merge pull request #3720 from 9rnsr/fix13049 Issue 13049 - in template arguments the compiler fails to parse scope for function pointers arguments
Comment #3 by github-bugzilla — 2014-07-08T01:25:08Z
Commit pushed to 2.066 at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/1442b7fd3b1240f35c2bd21e5909161342c9cfd6 Merge pull request #3720 from 9rnsr/fix13049 Issue 13049 - in template arguments the compiler fails to parse scope for function pointers arguments
Comment #4 by github-bugzilla — 2014-08-01T18:25:36Z
Commits pushed to master at https://github.com/D-Programming-Language/druntime https://github.com/D-Programming-Language/druntime/commit/f888fbcff82f30c549a7cccd98191dedcc3101ec remove workarounds for resolved issue 13049 and 13050 https://github.com/D-Programming-Language/druntime/commit/cb512c2d6962346ef6325ca2bf4d62d4f9d75aca Merge pull request #917 from MartinNowak/removeWorkarounds remove workarounds for resolved issue 13049 and 13050
Comment #5 by github-bugzilla — 2014-08-22T08:04:10Z
Comment #6 by github-bugzilla — 2015-03-29T07:39:22Z
Comment #7 by github-bugzilla — 2015-06-17T21:03:50Z