[foreign-jextract] RFR: 8261906: Improve jextract support for virtual functions [v6]
Maurizio Cimadamore
mcimadamore at openjdk.java.net
Fri Mar 5 16:05:27 UTC 2021
On Fri, 5 Mar 2021 11:54:24 GMT, Jorn Vernee <jvernee at openjdk.org> wrote:
>> I'm not sure if typedefs have any scope in C, or if they're just global always. C++ has scoped typedefs, but I think in C every name period is global.
>
> Godbolt says I'm wrong though :) The example you give is allowed, and the typedef name's scope is restricted to the block
The snippet I typed above compiles (e.g. no error about redefinition of same name, which you do get w/o the braces). But that could only happen inside a function body - unless I'm missing something?
-------------
PR: https://git.openjdk.java.net/panama-foreign/pull/456
More information about the panama-dev
mailing list