How to use pragma in a compound literal in GCC 9

2019-02-11 Thread Daurnimator
A project I help maintain has had a report that it fails to compile with GCC 9 https://github.com/wahern/cqueues/issues/212#issuecomment-461693111 I've attached a minimal reproduction of the issue. Trying to compile it results in: : In function 'main': :46:15: error: lvalue required as unary '&'

Feature Request: sizeof/typeof/offsetof for bit-fields

2018-08-27 Thread Daurnimator
I'm writing a binding generator and would love a way to get the size, type, and offset of bit fields of an arbitrary struct. To implement, it appears that 'bit_position' in tree.c has the information required. As a stranger to GCC development, what is the process to get such an extension? Daurn.