digitalmars.D.bugs - [Issue 9288] New: Parameter(Identifier|DefaultValue)Tuple report pointless errors
- d-bugmail puremagic.com (117/117) Jan 09 2013 http://d.puremagic.com/issues/show_bug.cgi?id=9288
- d-bugmail puremagic.com (10/10) Jan 09 2013 http://d.puremagic.com/issues/show_bug.cgi?id=9288
- d-bugmail puremagic.com (12/12) Jan 10 2013 http://d.puremagic.com/issues/show_bug.cgi?id=9288
http://d.puremagic.com/issues/show_bug.cgi?id=9288 Summary: Parameter(Identifier|DefaultValue)Tuple report pointless errors Product: D Version: D2 Platform: All OS/Version: All Status: NEW Keywords: diagnostic Severity: minor Priority: P2 Component: Phobos AssignedTo: nobody puremagic.com ReportedBy: k.hara.pg gmail.com After fixing bug8982, following code reports a lot of errors, but they are pointless. --- import std.traits; struct Vector { float x,y,z,w; immutable Vector one = Vector(1,1,1,1); } void func(int x = 10, ref const Vector v = Vector(1,1,1,1)); version(A) pragma(msg, ParameterIdentifierTuple!func); version(B) pragma(msg, ParameterDefaultValueTuple!func); --- With `-version=A`: test.d(12): Error: Vector(1F, 1F, 1F, 1F) is not an lvalue ...\phobos\std\traits.d(552): Error: undefined identifier PT, did you mean variable i? ...\phobos\std\traits.d(555): Error: template instance Get!(i) template 'Get' is not defined ...\phobos\std\traits.d(552): Error: undefined identifier PT, did you mean variable i? ...\phobos\std\traits.d(555): Error: template instance Get!(i) template 'Get' is not defined ...\phobos\std\traits.d(552): Error: undefined identifier PT, did you mean variable i? ...\phobos\std\traits.d(555): Error: template instance Get!(i) template 'Get' is not defined ...\phobos\std\traits.d(552): Error: undefined identifier PT, did you mean variable i? ...\phobos\std\traits.d(555): Error: template instance Get!(i) template 'Get' is not defined ...\phobos\std\traits.d(552): Error: undefined identifier PT, did you mean variable i? ...\phobos\std\traits.d(555): Error: template instance Get!(i) template 'Get' is not defined ...\phobos\std\traits.d(552): Error: undefined identifier PT, did you mean variable i? ...\phobos\std\traits.d(555): Error: template instance Get!(i) template 'Get' is not defined ...\phobos\std\traits.d(552): Error: undefined identifier PT, did you mean variable i? ...\phobos\std\traits.d(555): Error: template instance Get!(i) template 'Get' is not defined ...\phobos\std\traits.d(552): Error: undefined identifier PT, did you mean variable i? ...\phobos\std\traits.d(555): Error: template instance Get!(i) template 'Get' is not defined ...\phobos\std\traits.d(552): Error: undefined identifier PT, did you mean variable i? ...\phobos\std\traits.d(555): Error: template instance Get!(i) template 'Get' is not defined ...\phobos\std\traits.d(552): Error: undefined identifier PT, did you mean variable i? ...\phobos\std\traits.d(555): Error: template instance Get!(i) template 'Get' is not defined With `-version=B`: test.d(12): Error: Vector(1F, 1F, 1F, 1F) is not an lvalue ...\phobos\std\traits.d(634): Error: undefined identifier PT, did you mean variable i? ...\phobos\std\traits.d(637): Error: template instance Get!(i) template 'Get' is not defined ...\phobos\std\traits.d(634): Error: undefined identifier PT, did you mean variable i? ...\phobos\std\traits.d(637): Error: template instance Get!(i) template 'Get' is not defined ...\phobos\std\traits.d(634): Error: undefined identifier PT, did you mean variable i? ...\phobos\std\traits.d(637): Error: template instance Get!(i) template 'Get' is not defined ...\phobos\std\traits.d(634): Error: undefined identifier PT, did you mean variable i? ...\phobos\std\traits.d(637): Error: template instance Get!(i) template 'Get' is not defined ...\phobos\std\traits.d(634): Error: undefined identifier PT, did you mean variable i? ...\phobos\std\traits.d(637): Error: template instance Get!(i) template 'Get' is not defined ...\phobos\std\traits.d(634): Error: undefined identifier PT, did you mean variable i? ...\phobos\std\traits.d(637): Error: template instance Get!(i) template 'Get' is not defined ...\phobos\std\traits.d(634): Error: undefined identifier PT, did you mean variable i? ...\phobos\std\traits.d(637): Error: template instance Get!(i) template 'Get' is not defined ...\phobos\std\traits.d(634): Error: undefined identifier PT, did you mean variable i? ...\phobos\std\traits.d(637): Error: template instance Get!(i) template 'Get' is not defined ...\phobos\std\traits.d(634): Error: undefined identifier PT, did you mean variable i? ...\phobos\std\traits.d(637): Error: template instance Get!(i) template 'Get' is not defined ...\phobos\std\traits.d(634): Error: undefined identifier PT, did you mean variable i? ...\phobos\std\traits.d(637): Error: template instance Get!(i) template 'Get' is not defined -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jan 09 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9288 Kenji Hara <k.hara.pg gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |pull https://github.com/D-Programming-Language/phobos/pull/1064 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jan 09 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9288 Commits pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/f6f57530a64c045c434a473efcd6492d60711068 fix Issue 9288 - Parameter(Identifier|DefaultValue)Tuple report pointless errors https://github.com/D-Programming-Language/phobos/commit/bfb6d3d2f386abedbc9aaa850665234d040a0731 Issue 9288 - Parameter(Identifier|DefaultValue)Tuple report pointless errors -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jan 10 2013