[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[DotGNU]a segfault on anonymous bit field
From: |
Gopal V |
Subject: |
[DotGNU]a segfault on anonymous bit field |
Date: |
Wed, 28 Aug 2002 20:51:39 +0530 |
User-agent: |
Mutt/1.2.5i |
This is a stupid bug report ... but it does have some sense in it
struct xyz
{
int x:1;
int y:2;
int z:3;
int :2;
};
should compile ... but throws an error with cscc (A segfault)....
I really should not say "I fixed it ..." :-) ... but I gather this
looks suspiciously like a "duh !" fix ... (sorry for the stupidity
of the fix, it was a stupid bug as well :-)
Also the aspect of sizeof came up here . sizeof(struct xyz) was
not 1 as expected, it was 4 ... why ? (saw an ldc.i4.4 there)
So are all bitsets stored in Int32s ? (I wanted to access a byte here,
I can't union with a byte here ...)
Anyway it doesn't matter, I was just trying to "find" bugs :-)
Gopal
--
The difference between insanity and genius is measured by success
patch
Description: Text document
- [DotGNU]a segfault on anonymous bit field,
Gopal V <=