Bug 21534 – dtoh: Default params for default ctor missing template args

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-01-09T17:08:38Z
Last change time
2021-01-10T13:27:19Z
Keywords
pull
Assigned to
No Owner
Creator
kinke

Comments

Comment #0 by kinke — 2021-01-09T17:08:38Z
E.g., in frontend.h: struct Target { [...] Target([...], FPTypeProperties<float > FloatProperties = FPTypeProperties(NAN, NAN, NAN, NAN, NAN, 6LL, 24LL, 128LL, -125LL, 38LL, -37LL), [...]) : [...] };
Comment #1 by dlang-bot — 2021-01-09T21:36:46Z
@MoonlightSentinel created dlang/dmd pull request #12117 "Fix 21534 - dtoh: Default params for default ctor missing template args" fixing this issue: - Fix 21534 - dtoh: Default params for default ctor missing template args `visit` the struct type instead of simply printing the identifier s.t. template arguments are printed (and possible forward references are resolved). Also required a slight adjustment for `CallExp` because `e.f` is null when calling a templated aggregate's ctor. https://github.com/dlang/dmd/pull/12117
Comment #2 by dlang-bot — 2021-01-10T13:27:19Z
dlang/dmd pull request #12117 "Fix 21534 - dtoh: Default params for default ctor missing template args" was merged into master: - 01231d1f07ce9484008d8ad4ed01f60ad12c0352 by MoonlightSentinel: Fix 21534 - dtoh: Default params for default ctor missing template args `visit` the struct type instead of simply printing the identifier s.t. template arguments are printed (and possible forward references are resolved). Also required a slight adjustment for `CallExp` because `e.f` is null when calling a templated aggregate's ctor. https://github.com/dlang/dmd/pull/12117