Tracker: Bugs

5 typedef problem - ID: 3137371
Last Update: Tracker Item Submitted ( nobody )

============================================
typedef struct _test
{
int field_a;
int field_b;
} TEST;

int main(int argc, char *argv[])
{
TEST t;
if ( t. //doesn't work

return 0;
}
--------------------------------------------
M-x semantic-analyze-current-context

Context Type: #<semantic-analyze-context context>
Bounds: (113 . 113)
Prefix: "t"
""
Prefix Classes: 'function
'variable
'type
Encountered Errors: '(error "Cannot find definition for \"t\"")
--------
-> Local Args: int argc
char* argv[]
-> Local Vars: int argc
char* argv[]
============================================

but
============================================
typedef struct _test
{
int field_a;
int field_b;
} TEST;

int main(int argc, char *argv[])
{
TEST t;
t. //works correctly

return 0;
}
--------------------------------------------
M-x semantic-analyze-current-context

Context Type: #<semantic-analyze-context context>
Bounds: (108 . 108)
Prefix: TEST t
""
Prefix Classes: 'function
'variable
'type
Prefix Types: struct _test {}
--------
-> Local Args: int argc
char* argv[]
-> Local Vars: int argc
char* argv[]
TEST t
============================================


Nobody/Anonymous ( nobody ) - 2010-12-14 10:34:53 PST

5

Open

None

Nobody/Anonymous

semantic

None

Public


Comments




Log in to comment.

No follow-up comments have been posted.

Attached File

No Files Currently Attached

Change

No changes have been made to this artifact.