Skip to content

Clang does not support gcc-style nested functions #9578

@rnk

Description

@rnk
Bugzilla Link 9206
Resolution WONTFIX
Resolved on Jul 12, 2011 09:11
Version trunk
OS Linux

Extended Description

Here are the gcc docs for this gnu-tension:
http://gcc.gnu.org/onlinedocs/gcc/Nested-Functions.html

Is this worth supporting in clang and LLVM? My understanding of the implementation is that you emit snippet of code to the stack which loads the address of the parent stack frame and jumps into the nested function.

It seems LLVM already supports trampolines, so this would mostly be frontend work.
http://llvm.org/docs/LangRef.html#int_it

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillaclang:frontendLanguage frontend issues, e.g. anything involving "Sema"wontfixIssue is real, but we can't or won't fix it. Not invalid

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions