[Issue 16481] invalid code accepted leading to linker error
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Fri Sep 9 07:50:27 PDT 2016
https://issues.dlang.org/show_bug.cgi?id=16481
ag0aep6g at gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |accepts-invalid
CC| |ag0aep6g at gmail.com
--- Comment #2 from ag0aep6g at gmail.com ---
Reduced further:
----
enum e = is(typeof(fun!()));
void fun()() { auto m = MapResult!()(0); }
alias f = fun!();
struct MapResult()
{
this(int) {}
void front() { undefined(); }
}
----
Looks similar to issue 16239.
When the 0 in `MapResult!()(0)` is removed, the program compiles and links
(with -main). => accepts-invalid
--
More information about the Digitalmars-d-bugs
mailing list