D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 20182 - [REG 2.086.0] std.traits.ParameterDefaults fails for copy constructor of nested struct
Summary: [REG 2.086.0] std.traits.ParameterDefaults fails for copy constructor of nest...
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D2
Hardware: x86_64 Linux
: P1 regression
Assignee: No Owner
URL:
Keywords: pull
Depends on:
Blocks:
 
Reported: 2019-08-29 20:22 UTC by Paul Backus
Modified: 2022-04-18 22:26 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Paul Backus 2019-08-29 20:22:16 UTC
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 Dlang Bot 2022-04-18 14:14:28 UTC
@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 Dlang Bot 2022-04-18 22:26:57 UTC
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