bugDotGNU Portable.NET - Bugs: bug #1185, cscc-c-s : gives wrong message...

 
 

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

bug #1185: cscc-c-s : gives wrong message when overriding pre-existing type

Submitted by:  Invalid User ID <Invalid User ID>
Submitted on:  Thu 12 Sep 2002 09:11:45 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Wont Fix
Privacy: PublicAssigned to: None
Open/Closed: Closed

Fri 13 Sep 2002 01:30:20 AM UTC, comment #2:

Afraid not. The lexer detects that an identifier is a
type, and returns TYPE_NAME to the parser instead of
IDENTIFIER. To get a "redeclared" error message, the lexer
somehow needs to know that the identifier is used in a
typedef context rather a normal context and then not return
TYPE_NAME. I suspect that gcc has a big huge hack in its
lexer, which would be very difficult to replicate in cscc.

Rhys Weatherley <rweather>
Project Administrator
Fri 13 Sep 2002 01:09:38 AM UTC, comment #1:

I suspect that gcc has a special hack in its code to detect redefinitions of standard types like "size_t". If you try to redefine something else ("typedef unsigned int x; typedef unsigned int x;") you will get an error from gcc. Fixing this would be extremely difficult.

Rhys Weatherley <rweather>
Project Administrator

 

No files currently attached

 

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
Fri 13 Sep 2002 01:09:38 AM UTCrweatherStatusNone=>(Error - Not Found)
  Open/ClosedOpen=>(Error - Not Found)

Back to the top


Powered by Savane 3.1-cleanup1