Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
adalisk-emikhaylov opened this issue Apr 22, 2025 · 0 comments
Open

Comments

@adalisk-emikhaylov
Copy link

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;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant