ccomparini / fpl2cc

fpl parser generator language
https://ccomparini.github.io/fpl2cc/
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

"read of non-const variable 'filesize' is not allowed in a constant expression" #6

Closed ccomparini closed 1 month ago

ccomparini commented 1 month ago

When using fpl2cc outside its own source tree, I seem to get:

src/util/utf8_buffer.h:59:19: note: read of non-const variable 'filesize' is not allowed in a constant expression src/util/utf8_buffer.h:56:12: note: declared here 56 | size_t filesize = in.tellg();

ccomparini commented 1 month ago

e8903b9dc5834b387d723f2227840d7e7ab972ca I believe fixes this