[Issue 8354] Some missing "import std.math to use ^^ operator" error messages

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jan 10 15:08:06 PST 2013


http://d.puremagic.com/issues/show_bug.cgi?id=8354


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
                 CC|                            |andrej.mitrovich at gmail.com
         Resolution|                            |DUPLICATE


--- Comment #5 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2013-01-10 15:07:59 PST ---
(In reply to comment #4)
> If std.math is imported in one module and power (^^) expression is used in
> another module and both the modules are compiled together, we again see the
> same confusing error:
> 
> bar.d(1): Error: undefined identifier 'std'
> 
> 
> Here is the testcase (compile with -- dmd foo.d bar.d):
> 
> // File foo.d
> import std.math;
> void foo() { }
> 
> // File bar.d
> void bar(int i) { 2^^i; }

This will be fixed with pull for Issue 9047.

*** This issue has been marked as a duplicate of issue 9047 ***

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


More information about the Digitalmars-d-bugs mailing list