www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 12400] New: Misleading/useless diagnostic on bad fully-qualified symbol name

reply d-bugmail puremagic.com writes:
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



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: -------
Mar 18 2014
next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12400




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: -------
Mar 18 2014
prev sibling next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12400


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

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



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: -------
Mar 18 2014
prev sibling next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12400


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

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




 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: -------
Mar 24 2014
prev sibling parent d-bugmail puremagic.com writes:
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: -------
Mar 24 2014