bugDotGNU Portable.NET - Bugs: bug #12231, Problem with resolving fully...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #12231: Problem with resolving fully qualified static metod from referenced dlls - reopen

Submitter:  Radek Polak <radekp>
Submitted:  Sun 06 Mar 2005 07:11:58 PM UTC
Votes: 1
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed

Jump to the original submission

Sat 26 May 2007 12:07:58 PM UTC, comment #10: 

This fix will be in the 0.8.2 release.

Klaus Treichel <ktreichel>
Group administrator
Sat 26 May 2007 08:56:15 AM UTC, comment #9: 

Confirmed fixed for me too with CVS HEAD.

What release number is this fix likely to appear in?  Or has it already?

Olly Betts <ollybetts>
Fri 25 May 2007 03:34:32 PM UTC, comment #8: 

It works now. Thanks Klaus!

Radek Polak <radekp>
Group Member
Fri 25 May 2007 01:10:06 PM UTC, comment #7: 

Can you verify if this problem still exists with current cvs?

There has been a fix for cscc  that should solve the problem.

Klaus

Klaus Treichel <ktreichel>
Group administrator
Sun 14 May 2006 01:49:35 AM UTC, comment #6: 

I noticed that 0.6.12 is rather old (it was the version packaged
for my distro) so I've just verified this bug is still present in
0.7.4, built from source.

Olly Betts <ollybetts>
Sun 14 May 2006 12:53:08 AM UTC, comment #5: 

I've just hit this problem too.

I don't think I can add much to the report, except to note that
I'm using "cscc version 0.6.12".

Olly Betts <ollybetts>
Mon 22 Aug 2005 05:24:00 AM UTC, comment #4: 

I had problems to unpack previously attached file, so i am uploading it once more

Radek Polak <radekp>
Group Member
Mon 22 Aug 2005 05:19:06 AM UTC, comment #3: 

Problem seems to be in parser. If it does not stop on error, semantic analysis would work fine. I tried this test in cs_grammar.c and all went fine.

/*

  • Get the global scope.

 */
static ILScope *GlobalScope(void)
{
if(CCGlobalScope)
{
return CCGlobalScope;
}
else
{
CCGlobalScope = ILScopeCreate(&CCCodeGen, 0);
ILScopeDeclareNamespace(CCGlobalScope, "System");
ILScopeUsing(CCGlobalScope, "System");
ILScopeDeclareNamespace(CCGlobalScope, "MyNamespace");
ILScopeUsing(CCGlobalScope, "MyNamespace");
return CCGlobalScope;
}
}

Radek Polak <radekp>
Group Member
Thu 17 Mar 2005 02:02:46 PM UTC, comment #2: 

scope->lookup is function that is trying to find method Test() in MyNamespace. The function is different when we are using "using" directive and if we omit it.

Function ILScopeUsing in cg_scope.c is called for each "using" directive and sets working lookup function:

/* Change the lookup function to one which handles "using" clauses */
scope->lookup = UsingScope_Lookup;

Calling UsingScope_Lookup is then succesfull for "MyNamespace" symbol.

However if we omit "using" directive, then NormalScope_Lookup function is used and this function fails to find MyNamespace.

This points out, that the problem can be in NormalScope_Lookup.

Radek Polak <radekp>
Group Member
Sun 06 Mar 2005 08:52:38 PM UTC, comment #1: 

In M$.NET we would simply use MyClass.Test(); if namespace MyNamespace is already declared.

And MyNamespace.MyClass.Test() - if not.

Kirill Kononenko <krokas>
Sun 06 Mar 2005 07:11:58 PM UTC, original submission:  

I am reopening bug https://savannah.gnu.org/bugs/?func=detailitem&item_id=12182

and i am attaching project
- with correct Makefile (produces MyLib.dll insted of a.dll that conflicted with a.exe)

- removed line with "using MyNamespace". This line was uncommented in my previous post, so the error didnt show up

Radek Polak <radekp>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #3388:  namespace_test.tar.gz added by radekp (428B - application/x-gzip - Second version - i could not unpack previously upladed file)
file #2683:  namespace_test.tar.gz added by radekp (429B - application/x-gzip - Correct Makefile and removed line with "using MyNamespace")

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by ollybetts (Posted a comment)
  • -email is unavailable- added by radekp (Posted a comment)
  • -email is unavailable- added by ktreichel (Posted a comment)
  •  

    There is 1 vote so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2007-05-25 radekp StatusNone Fixed
        Open/ClosedOpen Closed
    2006-05-14 ollybetts Carbon-Copy- Added ollybetts
    2005-08-22 radekp Attached File- Added namespace_test.tar.gz, #2849
    2005-03-06 radekp Attached File- Added namespace_test.tar.gz, #2285

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code