Thread overview
[Issue 12400] New: Misleading/useless diagnostic on bad fully-qualified symbol name
Mar 18, 2014
Vladimir Panteleev
Mar 18, 2014
Kenji Hara
Mar 18, 2014
Kenji Hara
Mar 24, 2014
Kenji Hara
Mar 24, 2014
Kenji Hara
March 18, 2014
https://d.puremagic.com/issues/show_bug.cgi?id=12400

           Summary: Misleading/useless diagnostic on bad fully-qualified
                    symbol name
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: diagnostic
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: thecybershadow@gmail.com


--- Comment #0 from Vladimir Panteleev <thecybershadow@gmail.com> 2014-03-18 13:31:50 EET ---
//////////// test.d ////////////
import std.typecons;

alias std.typecons.Unqual!int X; ////////////////////////////////

Compiler output:

test.d(1,8): Error: import typecons template identifier 'Unqual' is not a
member of 'import typecons'
test.d(1,8): Error: import typecons template identifier 'Unqual' is not a
member of 'import typecons'
test.d(3,31): Error: undefined identifier 'Unqual'

The first two lines are misleading and useless.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
March 18, 2014
https://d.puremagic.com/issues/show_bug.cgi?id=12400



--- Comment #1 from Kenji Hara <k.hara.pg@gmail.com> 2014-03-18 07:38:34 PDT ---
With 2.065 and earlier, the code had been compiled, but it was incorrect behavior. So the rejection itself is valid and intended result.

But I agree that the diagnostic is problematic. The reported error should be:

test.d(3): Error: undefined identifier 'Unqual' in module std.typecons

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
March 18, 2014
https://d.puremagic.com/issues/show_bug.cgi?id=12400


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

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


--- Comment #2 from Kenji Hara <k.hara.pg@gmail.com> 2014-03-18 07:42:46 PDT ---
https://github.com/D-Programming-Language/dmd/pull/3391

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
March 24, 2014
https://d.puremagic.com/issues/show_bug.cgi?id=12400


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

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


--- Comment #3 from Kenji Hara <k.hara.pg@gmail.com> 2014-03-24 00:22:30 PDT ---
(In reply to comment #2)
> https://github.com/D-Programming-Language/dmd/pull/3391

The behavior was introduced by: https://github.com/D-Programming-Language/dmd/pull/2256

But it was reverted by: https://github.com/D-Programming-Language/dmd/pull/3395

So it's no longer issue in git-head.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
March 24, 2014
https://d.puremagic.com/issues/show_bug.cgi?id=12400


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

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


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