Bug 7408 – traits compiles fails for built-in properties of template instances

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-01-30T22:37:00Z
Last change time
2013-01-18T09:28:38Z
Keywords
pull, wrong-code
Assigned to
andrej.mitrovich
Creator
code

Comments

Comment #0 by code — 2012-01-30T22:37:44Z
template foobar() { } void main() { pragma(msg, foobar!().stringof); // OK static assert(__traits(compiles, foobar!().stringof)); // FAILS } ----
Comment #1 by andrej.mitrovich — 2013-01-09T16:35:41Z
Comment #2 by github-bugzilla — 2013-01-18T09:27:28Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/968cb4faf0ffd9b5b379a8c27f4f4da42e6bc1a5 Fixes Issue 7408 - __traits(compiles) should work on builtin template instance properties. https://github.com/D-Programming-Language/dmd/commit/dd09561b678d8dcb52fbef792c0f5c131e19ffda Merge pull request #1456 from AndrejMitrovic/Fix7408 Issue 7408 - __traits(compiles) should work on builtin template instance properties