Bug 70928 - [Parser] Indexer complains about __cdecl
Summary: [Parser] Indexer complains about __cdecl
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-parser (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 2.0.1   Edit
Assignee: John Camelon CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-27 14:10 EDT by Victor Lenet CLA
Modified: 2004-08-10 15:53 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Victor Lenet CLA 2004-07-27 14:10:53 EDT
Problem marker:
C/C++ Indexer Problem: Attempt to use symbol failed : __cdecl in 
file: /usr/include/stdio.h on line: 196.

caused by following code snippet in _ansi.h (included by stdio.h):
#define	_EXFUN(name, proto)		__cdecl name proto
#define	_EXPARM(name, proto)		(* __cdecl name) proto
Comment 1 Victor Lenet CLA 2004-07-29 14:04:59 EDT
Parser fails for:

typedef int size_t;
size_t __cdecl foo();

and

struct A {inta;};
A __cdecl foo();

but not for:

int __cdecl foo();

or

typedef int size_t;
size_t* __cdecl foo();

or

A* __cdecl foo();
Comment 2 John Camelon CLA 2004-08-03 11:52:01 EDT
REF: http://gcc.gnu.org/ml/gcc/1999-12n/msg00523.html
Comment 3 John Camelon CLA 2004-08-10 15:53:20 EDT
Fix applied to HEAD & 2_0.