https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118693

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
I can't reproduce this with upstream GCC or with gcc-14.2.1-3.fc40.x86_64

tmp$ wc input.txt 
   2    2 4930 input.txt
tmp$ xxd input.txt  | tail -2
00001330: 4141 4141 4141 4141 4141 4141 4141 3e0a  AAAAAAAAAAAAAA>.
00001340: 3e0a                                     >.
tmp$ head -c 4926 input.txt | ./getline
inputLine.size():  4926
eof():  1, fail():  0, bad():  0, good():  0
tmp$ head -c 4927 input.txt | ./getline
inputLine.size():  4926
eof():  0, fail():  0, bad():  0, good():  1
tmp$ head -c 4928 input.txt | ./getline
inputLine.size():  4926
eof():  0, fail():  0, bad():  0, good():  1
tmp$ head -c 4929 input.txt | ./getline
inputLine.size():  4926
eof():  0, fail():  0, bad():  0, good():  1
tmp$ cat  input.txt | ./getline
inputLine.size():  4926
eof():  0, fail():  0, bad():  0, good():  1


I'll try Fedora 41 ...

Reply via email to