dotgnu-pnet
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pnet-developers] [bug #4689] [PNET/C] [PARSER/DATATYPE] Problem with us


From: nobody
Subject: [Pnet-developers] [bug #4689] [PNET/C] [PARSER/DATATYPE] Problem with using a field name that is already a datatype.
Date: Sun, 10 Aug 2003 00:09:22 -0400
User-agent: Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.5a) Gecko/20030618

=================== BUG #4689: LATEST MODIFICATIONS ==================
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=4689&group_id=353

Changes by: James Michael DuPont <address@hidden>
Date: Sun 08/10/2003 at 06:09 (Europe/Berlin)

------------------ Additional Follow-up Comments ----------------------------
Good point, btw :
This is done in the pnet itself :

"uint" is defined in sys/types.h and as a field in ffi.h,

cheers,
mike

# 148 "/usr/include/sys/types.h" 2 3
[....]
typedef unsigned int uint;

# 363 "../libffi/include/ffi.h"
typedef union {
  int sint;
  unsigned int uint_value; /*MDUPONT : was uint, bug number 
https://savannah.gnu.org/bugs/?func=detailbug&bug_id=4689&group_id=353 */
  float flt;
  char data[4];
  void* ptr;
} ffi_raw;




=================== BUG #4689: FULL BUG SNAPSHOT ===================


Submitted by: mdupont                 Project: DotGNU Portable.NET          
Submitted on: Sat 08/09/2003 at 16:41
Category:  None                       Severity:  5 - Major                  
Bug Group:  None                      Resolution:  Fixed                    
Assigned to:  None                    Status:  Closed                       

Summary:  [PNET/C] [PARSER/DATATYPE] Problem with using a field name that is 
already a datatype. 

Original Submission:  The following snippet of code shows you a bug in the 
typedef handling system. You need to look for the field before resolving the 
typedef.
###########################################
##########################################
typedef unsigned int datatype;
typedef union {
  unsigned int datatype;
  void* ptr;
} my_union;


/* 

cscc test_local_name.c
test_local_name.c:3: syntax error, unexpected ';' at or near `;'
test_local_name.c:5: syntax error, unexpected '}' at or near `}'

*/


Follow-up Comments
*******************

-------------------------------------------------------
Date: Sun 08/10/2003 at 06:09       By: mdupont
Good point, btw :
This is done in the pnet itself :

"uint" is defined in sys/types.h and as a field in ffi.h,

cheers,
mike

# 148 "/usr/include/sys/types.h" 2 3
[....]
typedef unsigned int uint;

# 363 "../libffi/include/ffi.h"
typedef union {
  int sint;
  unsigned int uint_value; /*MDUPONT : was uint, bug number 
https://savannah.gnu.org/bugs/?func=detailbug&bug_id=4689&group_id=353 */
  float flt;
  char data[4];
  void* ptr;
} ffi_raw;


-------------------------------------------------------
Date: Sun 08/10/2003 at 02:40       By: rweather
Fix committed to CVS - 10 Aug 2003

BTW, don't do this - it is bad coding practice and
probably won't work on non-gcc C compilers.


CC list is empty


No files currently attached


For detailed info, follow this link:
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=4689&group_id=353

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]