digitalmars.D.bugs - [Issue 9879] New: Built-in sizeof should return ErrorExp if error occurs in aggregate type semantics
- d-bugmail puremagic.com (22/22) Apr 04 2013 http://d.puremagic.com/issues/show_bug.cgi?id=9879
- d-bugmail puremagic.com (10/10) Apr 04 2013 http://d.puremagic.com/issues/show_bug.cgi?id=9879
- d-bugmail puremagic.com (10/10) Apr 05 2013 http://d.puremagic.com/issues/show_bug.cgi?id=9879
- d-bugmail puremagic.com (12/19) Apr 05 2013 http://d.puremagic.com/issues/show_bug.cgi?id=9879
- d-bugmail puremagic.com (6/6) Apr 05 2013 http://d.puremagic.com/issues/show_bug.cgi?id=9879
http://d.puremagic.com/issues/show_bug.cgi?id=9879 Summary: Built-in sizeof should return ErrorExp if error occurs in aggregate type semantics Product: D Version: D2 Platform: All OS/Version: All Status: NEW Keywords: diagnostic Severity: minor Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: k.hara.pg gmail.com From bug 4269: With this code, `__traits` should return `false`, but doesn't. static if (__traits(compiles,A.sizeof)) pragma(msg, "A.sizeof compiles!"); class A { void foo(B b); } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Apr 04 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9879 Kenji Hara <k.hara.pg gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |pull https://github.com/D-Programming-Language/dmd/pull/1843 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Apr 04 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9879 This behaviour is intentional. Although there is an error in a function declared in A, the size of A is still known. Just as an error inside a function definition doesn't make the type of the function unknown. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Apr 05 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9879 Kenji Hara <k.hara.pg gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALIDThis behaviour is intentional. Although there is an error in a function declared in A, the size of A is still known. Just as an error inside a function definition doesn't make the type of the function unknown.OK, It makes sense. Thanks. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Apr 05 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9879 *** Issue 9856 has been marked as a duplicate of this issue. *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Apr 05 2013