Skip to content

function templates used within VLA array bounds don't get instantiated #11634

@zygoloid

Description

@zygoloid
mannequin
Bugzilla Link 11262
Resolution DUPLICATE
Resolved on Oct 28, 2011 18:21
Version unspecified
OS Linux
CC @efriedma-quic

Extended Description

Building this code:

template T min(T a, T b) { return a < b ? a : b; }
void g(int*);
void f() {
int a[min(1,2)];
g(a);
}

... results in IR where min is declared but not defined.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillaclang:frontendLanguage frontend issues, e.g. anything involving "Sema"duplicateResolved as duplicate

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions