[PATCH] D125208: [OpenCL] Fix __remove_address_space documentation code example
Justas Janickas via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon May 9 00:28:42 PDT 2022
Topotuna created this revision.
Topotuna added a reviewer: Anastasia.
Herald added subscribers: ldrumm, yaxunl.
Herald added a project: All.
Topotuna requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
Previously code example didn't compile because of missing keyword
'typename'. Keyword is now inserted.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D125208
Files:
clang/docs/LanguageExtensions.rst
Index: clang/docs/LanguageExtensions.rst
===================================================================
--- clang/docs/LanguageExtensions.rst
+++ clang/docs/LanguageExtensions.rst
@@ -2156,7 +2156,7 @@
void foo(T *par){
T var1; // error - local function variable with global address space
__private T var2; // error - conflicting address space qualifiers
- __private __remove_address_space<T>::type var3; // var3 is __private int
+ __private typename __remove_address_space<T>::type var3; // var3 is __private int
}
void bar(){
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D125208.427987.patch
Type: text/x-patch
Size: 560 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220509/eaa6146f/attachment.bin>
More information about the cfe-commits
mailing list