View mode: basic / threaded / horizontal-split · Log in · Help
January 10, 2013
[Issue 9288] New: Parameter(Identifier|DefaultValue)Tuple report pointless errors
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


--- Comment #0 from Kenji Hara <k.hara.pg@gmail.com> 2013-01-09 16:36:20 PST ---
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: -------
January 10, 2013
[Issue 9288] Parameter(Identifier|DefaultValue)Tuple report pointless errors
http://d.puremagic.com/issues/show_bug.cgi?id=9288


Kenji Hara <k.hara.pg@gmail.com> changed:

          What    |Removed                     |Added
----------------------------------------------------------------------------
          Keywords|                            |pull


--- Comment #1 from Kenji Hara <k.hara.pg@gmail.com> 2013-01-09 16:42:38 PST ---
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: -------
January 10, 2013
[Issue 9288] Parameter(Identifier|DefaultValue)Tuple report pointless errors
http://d.puremagic.com/issues/show_bug.cgi?id=9288



--- Comment #2 from github-bugzilla@puremagic.com 2013-01-10 05:02:56 PST ---
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
Merge pull request #1064 from 9rnsr/fix9288

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: -------
Top | Discussion index | About this forum | D home