Skip to content

Crash on auto references in function return types in templates #1934

Description

@adalisk-emikhaylov
template <typename T>
struct B
{
    auto &blah() {return *this;}
};

inline B<int> foo() {return {};}

This crashes on IsTypeComplete checks of the return type.

I'm using following options, in case it matters:

var options = driver.Options;
options.GeneratorKind = GeneratorKind.CSharp;
options.CheckSymbols = true;
options.GenerateClassTemplates = true;

driver.ParserOptions.LanguageVersion = CppSharp.Parser.LanguageVersion.CPP23;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions