Skip to content

Missing double AS qualifiers with private #32767

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

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

Missing double AS qualifiers with private #32767

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

Comments

@AnastasiaStulova
Copy link
Contributor

Bugzilla Link 33420
Resolution FIXED
Resolved on Jan 12, 2018 06:16
Version trunk
OS All

Extended Description

The following code contains multiple AS qualifiers which are not diagnosed:
local private int lip1;
local private int* lip2;

Note if we change private to any other (i.e. global) the following error occurs correctly:
test.cl:2:1: error: multiple address spaces specified for type

local global int lip1;

@AnastasiaStulova
Copy link
Contributor Author

Fixed by commit r315668. The following errors are given correctly:
test.cl:4:3: error: multiple address spaces specified for type
local private int lip1;
^
test.cl:5:3: error: multiple address spaces specified for type
local private int* lip2;

@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