Pass-by-value for typedefed const pointer types?
Submitted by Behdad Esfahbod
Link to original bug (#707656)
Description
I have this:
typedef const struct hb_language_impl_t *hb_language_t;
The aim is for hb_language_t to be used a pass-by-value type. However, g-i doesn't recognize this and generates these kinds of warnings:
/home/behdad/src/freedesktop/harfbuzz/src/hb-common.h:138: Warning: HarfBuzz: hb_language_from_string: return value: Invalid non-constant return of bare structure or union; register as boxed type or (skip)
I can register it as boxed, but that would result in unnecessary copies all over.