← Back to index
|
Original Bugzilla link
Bug 20182 – [REG 2.086.0] std.traits.ParameterDefaults fails for copy constructor of nested struct
Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2019-08-29T20:22:16Z
Last change time
2022-04-18T22:26:57Z
Keywords
pull
Assigned to
No Owner
Creator
Paul Backus
Comments
Comment #0
by snarwin+bugzilla — 2019-08-29T20:22:16Z
Test case: --- void main() { import std.traits: ParameterDefaults; struct S { this(ref S) {} } pragma(msg, ParameterDefaults!(S.__ctor)); } --- 2.068.2 to 2.085.1: Success with output: (void) Since 2.086.0: Failure with output: ----- /path/to/dmd.linux/dmd2/linux/bin64/../../src/phobos/std/traits.d-mixin-1489(1497): Error: cannot access frame pointer of `onlineapp.main.S` /path/to/dmd.linux/dmd2/linux/bin64/../../src/phobos/std/traits.d-mixin-1489(1500): Error: cannot access frame pointer of `onlineapp.main.S` /path/to/dmd.linux/dmd2/linux/bin64/../../src/phobos/std/traits.d(1524): Error: template instance `std.traits.ParameterDefaults!(__ctor).Get!0LU` error instantiating /path/to/dmd.linux/dmd2/linux/bin64/../../src/phobos/std/traits.d(1527): instantiated from here: `Impl!0LU` onlineapp.d(10): instantiated from here: `ParameterDefaults!(__ctor)` onlineapp.d(10): while evaluating `pragma(msg, ParameterDefaults!(__ctor))` -----
Comment #1
by dlang-bot — 2022-04-18T14:14:28Z
@RazvanN7 created dlang/phobos pull request #8433 "Fix Issue 20182 - [REG 2.086.0] std.traits.ParameterDefaults fails for copy constructor of nested struct" fixing this issue: - Fix Issue 20182 - [REG 2.086.0] std.traits.ParameterDefaults fails for copy constructor of nested struct
https://github.com/dlang/phobos/pull/8433
Comment #2
by dlang-bot — 2022-04-18T22:26:57Z
dlang/phobos pull request #8433 "Fix Issue 20182 - [REG 2.086.0] std.traits.ParameterDefaults fails for copy constructor of nested struct" was merged into master: - 354666be95cd33161501a404e4781b6584d46c8d by RazvanN7: Fix Issue 20182 - [REG 2.086.0] std.traits.ParameterDefaults fails for copy constructor of nested struct
https://github.com/dlang/phobos/pull/8433