Title: FTBFS: error: reference to ‘array’ is ambiguous · Issue #1585 · arrayfire/arrayfire · GitHub
Open Graph Title: FTBFS: error: reference to ‘array’ is ambiguous · Issue #1585 · arrayfire/arrayfire
X Title: FTBFS: error: reference to ‘array’ is ambiguous · Issue #1585 · arrayfire/arrayfire
Description: Tried to compile the latest tip of devel (2f474a8) on Debian, but getting a error: reference to ‘array’ is ambiguous in test/clamp.cpp. Sounds like someone perhaps brought std::array to the af namespace, hence the ambiguity? Detailed err...
Open Graph Description: Tried to compile the latest tip of devel (2f474a8) on Debian, but getting a error: reference to ‘array’ is ambiguous in test/clamp.cpp. Sounds like someone perhaps brought std::array to the af name...
X Description: Tried to compile the latest tip of devel (2f474a8) on Debian, but getting a error: reference to ‘array’ is ambiguous in test/clamp.cpp. Sounds like someone perhaps brought std::array to the af name...
Opengraph URL: https://github.com/arrayfire/arrayfire/issues/1585
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"FTBFS: error: reference to ‘array’ is ambiguous","articleBody":"Tried to compile the latest tip of `devel` (2f474a804a381915770981f518493204bb53d3c1) on Debian, but getting a `error: reference to ‘array’ is ambiguous` in `test/clamp.cpp`. Sounds like someone perhaps brought `std::array` to the `af` namespace, hence the ambiguity?\n\nDetailed error:\n\n```\n[ 70%] Building CXX object test/CMakeFiles/clamp_opencl.dir/clamp.cpp.o\n/home/gvaillan/local/src/arrayfire/test/clamp.cpp: In member function ‘virtual void ClampTests_FloatArrayArray_Test::TestBody()’:\n/home/gvaillan/local/src/arrayfire/test/clamp.cpp:24:5: error: reference to ‘array’ is ambiguous\n array in = af::randu(num, f32);\n ^~~~~\nIn file included from /home/gvaillan/local/src/arrayfire/test/clamp.cpp:11:0:\n/home/gvaillan/local/src/arrayfire/include/af/array.h:27:17: note: candidates are: class af::array\n class AFAPI array {\n ^~~~~\nIn file included from /usr/include/c++/6/tuple:39:0,\n from /home/gvaillan/local/src/arrayfire/test/../test/gtest/include/gtest/internal/gtest-port.h:708,\n from /home/gvaillan/local/src/arrayfire/test/../test/gtest/include/gtest/internal/gtest-internal.h:40,\n from /home/gvaillan/local/src/arrayfire/test/../test/gtest/include/gtest/gtest.h:58,\n from /home/gvaillan/local/src/arrayfire/test/clamp.cpp:10:\n/usr/include/c++/6/array:90:12: note: template\u003cclass _Tp, long unsigned int _Nm\u003e struct std::array\n struct array\n ^~~~~\n/home/gvaillan/local/src/arrayfire/test/clamp.cpp:25:5: error: reference to ‘array’ is ambiguous\n array lo = af::randu(num, f32)/10; // Ensure lo \u003c= 0.1\n ^~~~~\nIn file included from /home/gvaillan/local/src/arrayfire/test/clamp.cpp:11:0:\n/home/gvaillan/local/src/arrayfire/include/af/array.h:27:17: note: candidates are: class af::array\n class AFAPI array {\n ^~~~~\nIn file included from /usr/include/c++/6/tuple:39:0,\n from /home/gvaillan/local/src/arrayfire/test/../test/gtest/include/gtest/internal/gtest-port.h:708,\n from /home/gvaillan/local/src/arrayfire/test/../test/gtest/include/gtest/internal/gtest-internal.h:40,\n from /home/gvaillan/local/src/arrayfire/test/../test/gtest/include/gtest/gtest.h:58,\n from /home/gvaillan/local/src/arrayfire/test/clamp.cpp:10:\n/usr/include/c++/6/array:90:12: note: template\u003cclass _Tp, long unsigned int _Nm\u003e struct std::array\n struct array\n ^~~~~\n/home/gvaillan/local/src/arrayfire/test/clamp.cpp:26:5: error: reference to ‘array’ is ambiguous\n array hi = 1.0 - af::randu(num, f32)/10; // Ensure hi \u003e= 0.9\n ^~~~~\nIn file included from /home/gvaillan/local/src/arrayfire/test/clamp.cpp:11:0:\n/home/gvaillan/local/src/arrayfire/include/af/array.h:27:17: note: candidates are: class af::array\n class AFAPI array {\n ^~~~~\nIn file included from /usr/include/c++/6/tuple:39:0,\n from /home/gvaillan/local/src/arrayfire/test/../test/gtest/include/gtest/internal/gtest-port.h:708,\n from /home/gvaillan/local/src/arrayfire/test/../test/gtest/include/gtest/internal/gtest-internal.h:40,\n from /home/gvaillan/local/src/arrayfire/test/../test/gtest/include/gtest/gtest.h:58,\n from /home/gvaillan/local/src/arrayfire/test/clamp.cpp:10:\n/usr/include/c++/6/array:90:12: note: template\u003cclass _Tp, long unsigned int _Nm\u003e struct std::array\n struct array\n ^~~~~\n/home/gvaillan/local/src/arrayfire/test/clamp.cpp:27:14: error: ‘lo’ was not declared in this scope\n af::eval(lo, hi);\n ^~\n/home/gvaillan/local/src/arrayfire/test/clamp.cpp:27:18: error: ‘hi’ was not declared in this scope\n af::eval(lo, hi);\n ^~\n/home/gvaillan/local/src/arrayfire/test/clamp.cpp:31:5: error: reference to ‘array’ is ambiguous\n array out = clamp(in, lo, hi);\n ^~~~~\nIn file included from /home/gvaillan/local/src/arrayfire/test/clamp.cpp:11:0:\n/home/gvaillan/local/src/arrayfire/include/af/array.h:27:17: note: candidates are: class af::array\n class AFAPI array {\n ^~~~~\nIn file included from /usr/include/c++/6/tuple:39:0,\n from /home/gvaillan/local/src/arrayfire/test/../test/gtest/include/gtest/internal/gtest-port.h:708,\n from /home/gvaillan/local/src/arrayfire/test/../test/gtest/include/gtest/internal/gtest-internal.h:40,\n from /home/gvaillan/local/src/arrayfire/test/../test/gtest/include/gtest/gtest.h:58,\n from /home/gvaillan/local/src/arrayfire/test/clamp.cpp:10:\n/usr/include/c++/6/array:90:12: note: template\u003cclass _Tp, long unsigned int _Nm\u003e struct std::array\n struct array\n ^~~~~\n/home/gvaillan/local/src/arrayfire/test/clamp.cpp:32:5: error: ‘out’ was not declared in this scope\n out.host(\u0026hout[0]);\n ^~~\n/home/gvaillan/local/src/arrayfire/test/clamp.cpp:33:5: error: ‘in’ was not declared in this scope\n in.host(\u0026hin[0]);\n ^~\n/home/gvaillan/local/src/arrayfire/test/clamp.cpp: In member function ‘virtual void ClampTests_FloatArrayScalar_Test::TestBody()’:\n/home/gvaillan/local/src/arrayfire/test/clamp.cpp:46:5: error: reference to ‘array’ is ambiguous\n array in = af::randu(num, f32);\n ^~~~~\nIn file included from /home/gvaillan/local/src/arrayfire/test/clamp.cpp:11:0:\n/home/gvaillan/local/src/arrayfire/include/af/array.h:27:17: note: candidates are: class af::array\n class AFAPI array {\n ^~~~~\nIn file included from /usr/include/c++/6/tuple:39:0,\n from /home/gvaillan/local/src/arrayfire/test/../test/gtest/include/gtest/internal/gtest-port.h:708,\n from /home/gvaillan/local/src/arrayfire/test/../test/gtest/include/gtest/internal/gtest-internal.h:40,\n from /home/gvaillan/local/src/arrayfire/test/../test/gtest/include/gtest/gtest.h:58,\n from /home/gvaillan/local/src/arrayfire/test/clamp.cpp:10:\n/usr/include/c++/6/array:90:12: note: template\u003cclass _Tp, long unsigned int _Nm\u003e struct std::array\n struct array\n ^~~~~\n/home/gvaillan/local/src/arrayfire/test/clamp.cpp:47:5: error: reference to ‘array’ is ambiguous\n array lo = af::randu(num, f32)/10; // Ensure lo \u003c= 0.1\n ^~~~~\nIn file included from /home/gvaillan/local/src/arrayfire/test/clamp.cpp:11:0:\n/home/gvaillan/local/src/arrayfire/include/af/array.h:27:17: note: candidates are: class af::array\n class AFAPI array {\n ^~~~~\nIn file included from /usr/include/c++/6/tuple:39:0,\n from /home/gvaillan/local/src/arrayfire/test/../test/gtest/include/gtest/internal/gtest-port.h:708,\n from /home/gvaillan/local/src/arrayfire/test/../test/gtest/include/gtest/internal/gtest-internal.h:40,\n from /home/gvaillan/local/src/arrayfire/test/../test/gtest/include/gtest/gtest.h:58,\n from /home/gvaillan/local/src/arrayfire/test/clamp.cpp:10:\n/usr/include/c++/6/array:90:12: note: template\u003cclass _Tp, long unsigned int _Nm\u003e struct std::array\n struct array\n ^~~~~\n/home/gvaillan/local/src/arrayfire/test/clamp.cpp:51:5: error: reference to ‘array’ is ambiguous\n array out = clamp(in, lo, hi);\n ^~~~~\nIn file included from /home/gvaillan/local/src/arrayfire/test/clamp.cpp:11:0:\n/home/gvaillan/local/src/arrayfire/include/af/array.h:27:17: note: candidates are: class af::array\n class AFAPI array {\n ^~~~~\nIn file included from /usr/include/c++/6/tuple:39:0,\n from /home/gvaillan/local/src/arrayfire/test/../test/gtest/include/gtest/internal/gtest-port.h:708,\n from /home/gvaillan/local/src/arrayfire/test/../test/gtest/include/gtest/internal/gtest-internal.h:40,\n from /home/gvaillan/local/src/arrayfire/test/../test/gtest/include/gtest/gtest.h:58,\n from /home/gvaillan/local/src/arrayfire/test/clamp.cpp:10:\n/usr/include/c++/6/array:90:12: note: template\u003cclass _Tp, long unsigned int _Nm\u003e struct std::array\n struct array\n ^~~~~\n/home/gvaillan/local/src/arrayfire/test/clamp.cpp:53:5: error: ‘out’ was not declared in this scope\n out.host(\u0026hout[0]);\n ^~~\n/home/gvaillan/local/src/arrayfire/test/clamp.cpp:54:5: error: ‘in’ was not declared in this scope\n in.host(\u0026hin[0]);\n ^~\n/home/gvaillan/local/src/arrayfire/test/clamp.cpp:55:5: error: ‘lo’ was not declared in this scope\n lo.host(\u0026hlo[0]);\n ^~\n/home/gvaillan/local/src/arrayfire/test/clamp.cpp: In member function ‘virtual void ClampTests_FloatScalarArray_Test::TestBody()’:\n/home/gvaillan/local/src/arrayfire/test/clamp.cpp:66:5: error: reference to ‘array’ is ambiguous\n array in = af::randu(num, f32);\n ^~~~~\nIn file included from /home/gvaillan/local/src/arrayfire/test/clamp.cpp:11:0:\n/home/gvaillan/local/src/arrayfire/include/af/array.h:27:17: note: candidates are: class af::array\n class AFAPI array {\n ^~~~~\nIn file included from /usr/include/c++/6/tuple:39:0,\n from /home/gvaillan/local/src/arrayfire/test/../test/gtest/include/gtest/internal/gtest-port.h:708,\n from /home/gvaillan/local/src/arrayfire/test/../test/gtest/include/gtest/internal/gtest-internal.h:40,\n from /home/gvaillan/local/src/arrayfire/test/../test/gtest/include/gtest/gtest.h:58,\n from /home/gvaillan/local/src/arrayfire/test/clamp.cpp:10:\n/usr/include/c++/6/array:90:12: note: template\u003cclass _Tp, long unsigned int _Nm\u003e struct std::array\n struct array\n ^~~~~\n/home/gvaillan/local/src/arrayfire/test/clamp.cpp:68:5: error: reference to ‘array’ is ambiguous\n array hi = 1.0 - af::randu(num, f32)/10; // Ensure hi \u003e= 0.9\n ^~~~~\nIn file included from /home/gvaillan/local/src/arrayfire/test/clamp.cpp:11:0:\n/home/gvaillan/local/src/arrayfire/include/af/array.h:27:17: note: candidates are: class af::array\n class AFAPI array {\n ^~~~~\nIn file included from /usr/include/c++/6/tuple:39:0,\n from /home/gvaillan/local/src/arrayfire/test/../test/gtest/include/gtest/internal/gtest-port.h:708,\n from /home/gvaillan/local/src/arrayfire/test/../test/gtest/include/gtest/internal/gtest-internal.h:40,\n from /home/gvaillan/local/src/arrayfire/test/../test/gtest/include/gtest/gtest.h:58,\n from /home/gvaillan/local/src/arrayfire/test/clamp.cpp:10:\n/usr/include/c++/6/array:90:12: note: template\u003cclass _Tp, long unsigned int _Nm\u003e struct std::array\n struct array\n ^~~~~\n/home/gvaillan/local/src/arrayfire/test/clamp.cpp:71:5: error: reference to ‘array’ is ambiguous\n array out = clamp(in, lo, hi);\n ^~~~~\nIn file included from /home/gvaillan/local/src/arrayfire/test/clamp.cpp:11:0:\n/home/gvaillan/local/src/arrayfire/include/af/array.h:27:17: note: candidates are: class af::array\n class AFAPI array {\n ^~~~~\nIn file included from /usr/include/c++/6/tuple:39:0,\n from /home/gvaillan/local/src/arrayfire/test/../test/gtest/include/gtest/internal/gtest-port.h:708,\n from /home/gvaillan/local/src/arrayfire/test/../test/gtest/include/gtest/internal/gtest-internal.h:40,\n from /home/gvaillan/local/src/arrayfire/test/../test/gtest/include/gtest/gtest.h:58,\n from /home/gvaillan/local/src/arrayfire/test/clamp.cpp:10:\n/usr/include/c++/6/array:90:12: note: template\u003cclass _Tp, long unsigned int _Nm\u003e struct std::array\n struct array\n ^~~~~\n/home/gvaillan/local/src/arrayfire/test/clamp.cpp:73:5: error: ‘out’ was not declared in this scope\n out.host(\u0026hout[0]);\n ^~~\n/home/gvaillan/local/src/arrayfire/test/clamp.cpp:74:5: error: ‘in’ was not declared in this scope\n in.host(\u0026hin[0]);\n ^~\n/home/gvaillan/local/src/arrayfire/test/clamp.cpp:75:5: error: ‘hi’ was not declared in this scope\n hi.host(\u0026hhi[0]);\n ^~\n/home/gvaillan/local/src/arrayfire/test/clamp.cpp: In member function ‘virtual void ClampTests_FloatScalarScalar_Test::TestBody()’:\n/home/gvaillan/local/src/arrayfire/test/clamp.cpp:86:5: error: reference to ‘array’ is ambiguous\n array in = af::randu(num, f32);\n ^~~~~\nIn file included from /home/gvaillan/local/src/arrayfire/test/clamp.cpp:11:0:\n/home/gvaillan/local/src/arrayfire/include/af/array.h:27:17: note: candidates are: class af::array\n class AFAPI array {\n ^~~~~\nIn file included from /usr/include/c++/6/tuple:39:0,\n from /home/gvaillan/local/src/arrayfire/test/../test/gtest/include/gtest/internal/gtest-port.h:708,\n from /home/gvaillan/local/src/arrayfire/test/../test/gtest/include/gtest/internal/gtest-internal.h:40,\n from /home/gvaillan/local/src/arrayfire/test/../test/gtest/include/gtest/gtest.h:58,\n from /home/gvaillan/local/src/arrayfire/test/clamp.cpp:10:\n/usr/include/c++/6/array:90:12: note: template\u003cclass _Tp, long unsigned int _Nm\u003e struct std::array\n struct array\n ^~~~~\n/home/gvaillan/local/src/arrayfire/test/clamp.cpp:91:5: error: reference to ‘array’ is ambiguous\n array out = clamp(in, lo, hi);\n ^~~~~\nIn file included from /home/gvaillan/local/src/arrayfire/test/clamp.cpp:11:0:\n/home/gvaillan/local/src/arrayfire/include/af/array.h:27:17: note: candidates are: class af::array\n class AFAPI array {\n ^~~~~\nIn file included from /usr/include/c++/6/tuple:39:0,\n from /home/gvaillan/local/src/arrayfire/test/../test/gtest/include/gtest/internal/gtest-port.h:708,\n from /home/gvaillan/local/src/arrayfire/test/../test/gtest/include/gtest/internal/gtest-internal.h:40,\n from /home/gvaillan/local/src/arrayfire/test/../test/gtest/include/gtest/gtest.h:58,\n from /home/gvaillan/local/src/arrayfire/test/clamp.cpp:10:\n/usr/include/c++/6/array:90:12: note: template\u003cclass _Tp, long unsigned int _Nm\u003e struct std::array\n struct array\n ^~~~~\n/home/gvaillan/local/src/arrayfire/test/clamp.cpp:93:5: error: ‘out’ was not declared in this scope\n out.host(\u0026hout[0]);\n ^~~\n/home/gvaillan/local/src/arrayfire/test/clamp.cpp:94:5: error: ‘in’ was not declared in this scope\n in.host(\u0026hin[0]);\n ^~\n\n```\n","author":{"url":"https://github.com/ghisvail","@type":"Person","name":"ghisvail"},"datePublished":"2016-09-12T08:02:43.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/1585/arrayfire/issues/1585"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:8419d9ad-61cf-ab39-b4da-0323d150f5ab |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CD98:366DBA:153C85E:1C626E1:6969A204 |
| html-safe-nonce | 90e9d68e5d7859a9a575bbc0e7e903b5c34dbcf4e1a7dceb581d7ba519508179 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRDk4OjM2NkRCQToxNTNDODVFOjFDNjI2RTE6Njk2OUEyMDQiLCJ2aXNpdG9yX2lkIjoiMjY4OTAxNTkzNzAxOTUxOTQ5MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 05f8078c5286afd169a577dd4dad71b8bd1a5a9c37a78ade32e0f2cdf06d157f |
| hovercard-subject-tag | issue:176315814 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/arrayfire/arrayfire/1585/issue_layout |
| twitter:image | https://opengraph.githubassets.com/82bd4ec597783319ecc8d826a89c6806958ce8c3c029bb5324b0d461fad38671/arrayfire/arrayfire/issues/1585 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/82bd4ec597783319ecc8d826a89c6806958ce8c3c029bb5324b0d461fad38671/arrayfire/arrayfire/issues/1585 |
| og:image:alt | Tried to compile the latest tip of devel (2f474a8) on Debian, but getting a error: reference to ‘array’ is ambiguous in test/clamp.cpp. Sounds like someone perhaps brought std::array to the af name... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ghisvail |
| hostname | github.com |
| expected-hostname | github.com |
| None | 24c4c97a2d520cb286b35e1a4c22d7a4df3c26a2fa28dd7cdf0e65db327b4de7 |
| turbo-cache-control | no-preview |
| go-import | github.com/arrayfire/arrayfire git https://github.com/arrayfire/arrayfire.git |
| octolytics-dimension-user_id | 5395442 |
| octolytics-dimension-user_login | arrayfire |
| octolytics-dimension-repository_id | 25889802 |
| octolytics-dimension-repository_nwo | arrayfire/arrayfire |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 25889802 |
| octolytics-dimension-repository_network_root_nwo | arrayfire/arrayfire |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 124667f43168afb6c9c03b7c02eb5b1d2e1be3d9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width