[foreign-jextract] RFR: 8261906: Improve jextract support for virtual functions [v6]
Jorn Vernee
jvernee at openjdk.java.net
Fri Mar 5 16:05:35 UTC 2021
On Fri, 5 Mar 2021 11:54:46 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:
>> 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?
C Standard:
An identifier can denote an object; a function; a tag or a member of a structure, union, orenumeration; a typedef name; a label name; a macro name; or a macro parameter. The same identifier can denote different entities at different points in the program.
-------------
PR: https://git.openjdk.java.net/panama-foreign/pull/456
More information about the panama-dev
mailing list