Skip to content

[SR-14919] Warn on creating a recursive always inline function #57266

@typesanitizer

Description

@typesanitizer
Previous ID SR-14919
Radar None
Original Reporter @typesanitizer
Type Improvement
Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Improvement
Assignee None
Priority Medium

md5: c9da0b2f8b2a2fa89fee15be912edb8b

Issue Description:

David Smith was confused at some benchmarks he was working on, and then realized an issue was that he had an always inline function which was recursive, so it didn't get inlined at all. This seems like a programmer error – it's quite likely to be unintentional. I think we should warn if you have a recursive function (or more generally, a function in a SCC) which is marked always inline.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions