bugDotGNU Portable.NET - Bugs: bug #1798, cscc incorrectly resolves some...

 
 

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

bug #1798: cscc incorrectly resolves some using-alias-directive

Submitted by:  Marcus Urban <mathpup>
Submitted on:  Mon 25 Nov 2002 02:25:53 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Thu 10 Jul 2003 03:30:52 AM UTC, comment #4:

Closed - lazy evaluation is a feature of how cscc works.
Changing this will require a massive re-architect to
add an error message for something that real programmers
will never encounter.

Rhys Weatherley <rweather>
Project Administrator
Wed 26 Feb 2003 05:14:11 AM UTC, comment #3:

I have partially fixed this bug. It is now no longer possible
to have one alias refer to another, in accordance with the
specification. However, the test case attached to this bug
will still compile OK with no error because B is never used
anywhere in the code. If you add a variable declaration to
Main like "B x", you will get an error. This is because
aliases are evaluated in a lazy manner in cscc. It may
take a bit longer to figure out how to evaluate aliases
non-lazily.

Rhys Weatherley <rweather>
Project Administrator
Tue 28 Jan 2003 01:57:38 PM UTC, comment #2:

not fixed :( ...

I'm stuck up with work at college ... and still teaching guys TreeCC .. (for my ``project'' team)

Gopal.V <t3rmin4t0r>
Project Administrator
Tue 28 Jan 2003 06:46:26 AM UTC, comment #1:

What was the status on this Gopal?

Rhys Weatherley <rweather>
Project Administrator
Mon 25 Nov 2002 02:25:53 AM UTC, original submission:

When handling using-alias-directives, resolving a typename or namespace is supposed to be done as though each directive were the only one in the immediate namespace or compilation unit. This is illustrated by the attached program below:

csc reports the following error:

using.cs(2,9): error CS0246: The type or namespace name 'A' could not be found (are you missing a using directive or an assembly reference?)

Marcus Urban <mathpup>

 

Attached Files
file #163:  using.cs added by mathpup (93B - text/x-csharp - Bug illustration)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 2 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Thu 10 Jul 2003 03:30:52 AM UTCrweatherOpen/ClosedOpen=>(Error - Not Found)
Thu 10 Jul 2003 03:30:51 AM UTCrweatherStatusNone=>(Error - Not Found)

Back to the top


Powered by Savane 3.1-cleanup1