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

Missing diagnostic for function return in private AS #32766

Closed
AnastasiaStulova opened this issue Jun 12, 2017 · 1 comment
Closed

Missing diagnostic for function return in private AS #32766

AnastasiaStulova opened this issue Jun 12, 2017 · 1 comment
Labels
bugzilla Issues migrated from bugzilla OpenCL

Comments

@AnastasiaStulova
Copy link
Contributor

Bugzilla Link 33419
Resolution FIXED
Resolved on Jan 12, 2018 06:09
Version trunk
OS Linux

Extended Description

The following code should compile with an error (spec s6.5):

__private int testFunction(void)
{
return 42;
}

Note that using any other AS would produce an error.

@AnastasiaStulova
Copy link
Contributor Author

Fixed by commit r315668. The following error is given correctly:
error: return value cannot be qualified with address space

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 10, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugzilla Issues migrated from bugzilla OpenCL
Projects
None yet
Development

No branches or pull requests

1 participant