Bug 21362 - RH 7 compiler rejects fpos_t assignments (RH6.2 worked)
Summary: RH 7 compiler rejects fpos_t assignments (RH6.2 worked)
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: glibc
Version: 7.0
Hardware: i386
OS: Linux
medium
high
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: David Lawrence
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2000-11-26 21:54 UTC by Need Real Name
Modified: 2016-11-24 15:02 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2000-11-26 21:54:25 UTC
Embargoed:


Attachments (Terms of Use)

Description Need Real Name 2000-11-26 21:54:23 UTC
In Red Hat 6.2, I could declare & assign fpos_t as follows:

fpos_t loc;
loc = 0;

In Red Hat 7, the same code generates a compiler error:

"incompatible types in assignment"


Please help - This was an experiment to convince my bosses to switch from 
NT to Linux.

Comment 1 Jakub Jelinek 2000-11-27 07:20:40 UTC
fpos_t is no longer a scalar type, there is nothing in the standards
which demand this to be a scalar btw. This is so that proper wide
stream support could be added.
As I have no idea what you wanted to achieve, I cannot suggest
what you should do instead, but one hint could be that fpos_t used
to be the same as off_t (resp. off64_t for fpos64_t), so you could
maybe use those types instead.
This is not related to gcc at all, the change happened in glibc
headers.


Note You need to log in before you can comment on or make changes to this bug.