Fails to build with GCC 11: error: invalid use of incomplete type 'class File'
edo0 opened this issue · 3 comments
edo0 commented
Hello there!
I am maintaining the pdf2djvu package for Arch's AUR.
It's been reported to me that compilation fails using GCC11 on your latest official release from 2020 (pdf2djvu-0.9.17.1)
I was wondering if you could make a patched re-release, unless a new version altogether was on its way.
Thank you in advance
jwilk commented
Thanks for the bug report.
Indeed, building with GCC 11 fails:
In file included from debug.hh:23,
from config.cc:27:
system.hh:144:9: error: invalid use of incomplete type 'class File'
144 | File::streamoff size();
| ^~~~~~~~~
system.hh:127:7: note: definition of 'class File' is not complete until the closing brace
127 | class File : public std::fstream
| ^~~~
This is fixed by d88c230.
I'll make a new release soon; most likely tomorrow.
edo0 commented
Thank you very much, that would be great