Skip to content
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

trailing_return_without_auto diagnostic is missing source location if the function has no return type written. #57647

Open
hokein opened this issue Sep 9, 2022 · 1 comment
Labels
clang:frontend Language frontend issues, e.g. anything involving "Sema"

Comments

@hokein
Copy link
Collaborator

hokein commented Sep 9, 2022

Sample code:

struct S {
    S()->int; // error!
};

The diagnostic error Function with trailing return type must specify return type 'auto', not 'void' is not attached to any position of the code.

@hokein hokein added the clang:frontend Language frontend issues, e.g. anything involving "Sema" label Sep 9, 2022
@llvmbot
Copy link
Member

llvmbot commented Sep 9, 2022

@llvm/issue-subscribers-clang-frontend

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clang:frontend Language frontend issues, e.g. anything involving "Sema"
Projects
None yet
Development

No branches or pull requests

2 participants