Thread overview
[Issue 19408] nothrow inference fails (template + postblit)
Nov 17, 2018
Stanislav Blinov
Dec 13, 2018
Walter Bright
Feb 24, 2021
RazvanN
November 17, 2018
https://issues.dlang.org/show_bug.cgi?id=19408

Stanislav Blinov <stanislav.blinov@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |regression

--- Comment #1 from Stanislav Blinov <stanislav.blinov@gmail.com> ---
Looks like this one is a bit of a roller-coaster:

--- 8< ---

Up to      2.062  : Failure with output: onlineapp.d(15): Error: static assert
(!true) is false

2.063  : Failure with output:
-----
onlineapp.d(29): Error: sneak.get is not nothrow
onlineapp.d(28): Error: delegate onlineapp.main.__lambda3 '__lambda3' is
nothrow yet may throw
-----

2.064   to 2.066.0: Failure with output:
-----
onlineapp.d(29): Error: 'onlineapp.Infidel!(S).Infidel.get' is not nothrow
onlineapp.d(28): Error: delegate 'onlineapp.main.__lambda4' is nothrow yet may
throw
-----

2.067.1 to 2.070.2: Failure with output: onlineapp.d(18): Error: static assert
(is(typeof(__error))) is false
           2.071.2: Failure with output:
-----
onlineapp.d(18): Error: static assert  (is(typeof([snip]))) is false
-----

Since      2.072.2: Success and no output

--- 8< ---


It seems like 2.063 to 2.066 exerted expected behavior.

--
December 13, 2018
https://issues.dlang.org/show_bug.cgi?id=19408

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla@digitalmars.com

--- Comment #2 from Walter Bright <bugzilla@digitalmars.com> ---
Postblit is likely to be supplanted with copy constructors in the near future.

--
February 24, 2021
https://issues.dlang.org/show_bug.cgi?id=19408

RazvanN <razvan.nitu1305@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |razvan.nitu1305@gmail.com
         Resolution|---                         |WONTFIX

--- Comment #3 from RazvanN <razvan.nitu1305@gmail.com> ---
Postblit is no longer maintained as its fundamental flaws cannot be fixed, so this is not going to get fixed. Please update the code to use the copy constructor.

Closing as WONRFIX.

--