[Issue 4595] [tdpl] Accessing non-static member of a null reference compiles

2019-12-10 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4595 RazvanN changed: What|Removed |Added Status|REOPENED|RESOLVED CC|

[Issue 4595] [tdpl] Accessing non-static member of a null reference compiles

2016-08-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4595 Andrej Mitrovic changed: What|Removed |Added OS|Windows |All --- Comment #17 from Andrej Mitrovic -

[Issue 4595] [tdpl] Accessing non-static member of a null reference compiles

2014-01-23 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=4595 Andrej Mitrovic changed: What|Removed |Added CC||sumit.adhik...@gmail.com --- Commen

[Issue 4595] [tdpl] Accessing non-static member of a null reference compiles

2013-09-19 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4595 --- Comment #15 from Andrej Mitrovic 2013-09-19 03:52:35 PDT --- (In reply to comment #14) > - `is(typeof(exp))` tests that the exp has valid type or not. For type > calculation, the code flow analysis and its validation result is just > unnec

[Issue 4595] [tdpl] Accessing non-static member of a null reference compiles

2013-09-19 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4595 --- Comment #14 from Kenji Hara 2013-09-19 00:33:55 PDT --- (In reply to comment #13) > After a few years of D use, I actually find the above will create problems. We > often use traits like these to check whether something is compilable, even

[Issue 4595] [tdpl] Accessing non-static member of a null reference compiles

2013-09-17 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4595 --- Comment #13 from Andrej Mitrovic 2013-09-17 12:54:33 PDT --- (In reply to comment #12) > Failing unittest in TDPL: > > unittest > { > class A { int x; } > A a; > assert(!__traits(compiles, a.x = 5)); > } > > Such programs must be s

[Issue 4595] [tdpl] Accessing non-static member of a null reference compiles

2011-12-18 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4595 Andrei Alexandrescu changed: What|Removed |Added CC||and...@metalanguage.com