Thread overview
[Issue 9961] New: Using UFCS properties suppress actual errors
Apr 19, 2013
Kenji Hara
Apr 19, 2013
Kenji Hara
Apr 19, 2013
Andrej Mitrovic
Apr 19, 2013
Kenji Hara
Apr 23, 2013
Kenji Hara
April 19, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9961

           Summary: Using UFCS properties suppress actual errors
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: diagnostic
          Severity: critical
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: k.hara.pg@gmail.com


--- Comment #0 from Kenji Hara <k.hara.pg@gmail.com> 2013-04-19 01:19:08 PDT ---
The second use of foo must also print actual errors during instantiation.

void foo(T)(T) { int x = ""; }
void main()
{
    100.foo();
    // test.d(1): Error: cannot implicitly convert expression ("") of type
string to int
    // test.d(4): Error: template instance test.foo!(int) error instantiating

    'a'.foo;
    // test.d(8): Error: no property 'foo' for type 'char'
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
April 19, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9961


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

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


--- Comment #1 from Kenji Hara <k.hara.pg@gmail.com> 2013-04-19 02:18:07 PDT ---
https://github.com/D-Programming-Language/dmd/pull/1911

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
April 19, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9961


Andrej Mitrovic <andrej.mitrovich@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrej.mitrovich@gmail.com


--- Comment #2 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2013-04-19 02:58:57 PDT ---
This is relevant to Issue 9241 and Issue 8894.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
April 19, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9961



--- Comment #3 from Kenji Hara <k.hara.pg@gmail.com> 2013-04-19 03:38:46 PDT ---
(In reply to comment #2)
> This is relevant to Issue 9241 and Issue 8894.

Yes, those are directly related. I added test case for issue 9241 in the pull request.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
April 23, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9961



--- Comment #4 from github-bugzilla@puremagic.com 2013-04-22 23:55:44 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/5d7ccff11d5bc91824bda7b66edca6318742f80b fix Issue 9961 - Using UFCS properties suppress actual errors

https://github.com/D-Programming-Language/dmd/commit/dec31f42148fe14a24250592ee21e376ac1d8a88 Merge pull request #1911 from 9rnsr/fix_ufcs_err

Issue 9961 - Using UFCS properties suppress actual errors

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
April 23, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9961


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------