Title: Index does not name a type (gcc-7.1) · Issue #58 · ndarray/ndarray · GitHub
Open Graph Title: Index does not name a type (gcc-7.1) · Issue #58 · ndarray/ndarray
X Title: Index does not name a type (gcc-7.1) · Issue #58 · ndarray/ndarray
Description: A new problem when using with gcc-7.1? In file included from /home/nbecker/.local/include/ndarray/converter/eigen.h:19:0, from /home/nbecker/.local/include/ndarray/pybind11.h:51, from pn2.cc:4: /home/nbecker/.local/include/ndarray/eigen....
Open Graph Description: A new problem when using with gcc-7.1? In file included from /home/nbecker/.local/include/ndarray/converter/eigen.h:19:0, from /home/nbecker/.local/include/ndarray/pybind11.h:51, from pn2.cc:4: /ho...
X Description: A new problem when using with gcc-7.1? In file included from /home/nbecker/.local/include/ndarray/converter/eigen.h:19:0, from /home/nbecker/.local/include/ndarray/pybind11.h:51, from pn2.cc:4: /ho...
Opengraph URL: https://github.com/ndarray/ndarray/issues/58
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Index does not name a type (gcc-7.1)","articleBody":"A new problem when using with gcc-7.1?\r\n\r\n```\r\nIn file included from /home/nbecker/.local/include/ndarray/converter/eigen.h:19:0,\r\n from /home/nbecker/.local/include/ndarray/pybind11.h:51,\r\n from pn2.cc:4:\r\n/home/nbecker/.local/include/ndarray/eigen.h:284:12: error: 'Index' does not name a type; did you mean 'index'?\r\n inline Index innerStride() const { return ST::getInnerStride(*Access::getCore(_array)); }\r\n ^~~~~\r\n index\r\n/home/nbecker/.local/include/ndarray/eigen.h:285:12: error: 'Index' does not name a type; did you mean 'index'?\r\n inline Index outerStride() const { return ST::getOuterStride(*Access::getCore(_array)); }\r\n ^~~~~\r\n index\r\n/home/nbecker/.local/include/ndarray/eigen.h:287:12: error: 'Index' does not name a type; did you mean 'index'?\r\n inline Index rowStride() const { return ST::getRowStride(*Access::getCore(_array)); }\r\n ^~~~~\r\n index\r\n/home/nbecker/.local/include/ndarray/eigen.h:288:12: error: 'Index' does not name a type; did you mean 'index'?\r\n inline Index colStride() const { return ST::getColStride(*Access::getCore(_array)); }\r\n ^~~~~\r\n index\r\n/home/nbecker/.local/include/ndarray/eigen.h:290:12: error: 'Index' does not name a type; did you mean 'index'?\r\n inline Index rows() const { return ST::getRows(*Access::getCore(_array)); }\r\n ^~~~~\r\n index\r\n/home/nbecker/.local/include/ndarray/eigen.h:291:12: error: 'Index' does not name a type; did you mean 'index'?\r\n inline Index cols() const { return ST::getCols(*Access::getCore(_array)); }\r\n ^~~~~\r\n index\r\n/home/nbecker/.local/include/ndarray/eigen.h:297:21: error: 'coeff' declared as an 'inline' field\r\n inline T\u0026 coeff(Index row, Index col) const {\r\n ^~~~~\r\n/home/nbecker/.local/include/ndarray/eigen.h:297:15: error: expected ';' at end of member declaration\r\n inline T\u0026 coeff(Index row, Index col) const {\r\n ^~~~~\r\n/home/nbecker/.local/include/ndarray/eigen.h:297:27: error: expected ')' before 'row'\r\n inline T\u0026 coeff(Index row, Index col) const {\r\n ^~~\r\n/home/nbecker/.local/include/ndarray/eigen.h:301:21: error: 'coeff' declared as an 'inline' field\r\n inline T\u0026 coeff(Index index) const {\r\n ^~~~~\r\n/home/nbecker/.local/include/ndarray/eigen.h:301:15: error: expected ';' at end of member declaration\r\n inline T\u0026 coeff(Index index) const {\r\n ^~~~~\r\n/home/nbecker/.local/include/ndarray/eigen.h:301:21: error: redeclaration of 'T\u0026 ndarray::EigenView\u003cT, N, C, XprKind_, Rows_, Cols_\u003e::coeff'\r\n inline T\u0026 coeff(Index index) const {\r\n ^~~~~\r\n/home/nbecker/.local/include/ndarray/eigen.h:297:21: note: previous declaration 'T\u0026 ndarray::EigenView\u003cT, N, C, XprKind_, Rows_, Cols_\u003e::coeff'\r\n inline T\u0026 coeff(Index row, Index col) const {\r\n ^~~~~\r\n/home/nbecker/.local/include/ndarray/eigen.h:301:27: error: expected ')' before 'index'\r\n inline T\u0026 coeff(Index index) const {\r\n ^~~~~\r\n/home/nbecker/.local/include/ndarray/eigen.h:305:24: error: 'coeffRef' declared as an 'inline' field\r\n inline T\u0026 coeffRef(Index row, Index col) const {\r\n ^~~~~\r\n/home/nbecker/.local/include/ndarray/eigen.h:305:15: error: expected ';' at end of member declaration\r\n inline T\u0026 coeffRef(Index row, Index col) const {\r\n ^~~~~~~~\r\n/home/nbecker/.local/include/ndarray/eigen.h:305:30: error: expected ')' before 'row'\r\n inline T\u0026 coeffRef(Index row, Index col) const {\r\n ^~~\r\n/home/nbecker/.local/include/ndarray/eigen.h:309:24: error: 'coeffRef' declared as an 'inline' field\r\n inline T\u0026 coeffRef(Index row, Index col) {\r\n ^~~~~\r\n/home/nbecker/.local/include/ndarray/eigen.h:309:15: error: expected ';' at end of member declaration\r\n inline T\u0026 coeffRef(Index row, Index col) {\r\n ^~~~~~~~\r\n/home/nbecker/.local/include/ndarray/eigen.h:309:24: error: redeclaration of 'T\u0026 ndarray::EigenView\u003cT, N, C, XprKind_, Rows_, Cols_\u003e::coeffRef'\r\n inline T\u0026 coeffRef(Index row, Index col) {\r\n ^~~~~\r\n/home/nbecker/.local/include/ndarray/eigen.h:305:24: note: previous declaration 'T\u0026 ndarray::EigenView\u003cT, N, C, XprKind_, Rows_, Cols_\u003e::coeffRef'\r\n inline T\u0026 coeffRef(Index row, Index col) const {\r\n ^~~~~\r\n/home/nbecker/.local/include/ndarray/eigen.h:309:30: error: expected ')' before 'row'\r\n inline T\u0026 coeffRef(Index row, Index col) {\r\n ^~~\r\n/home/nbecker/.local/include/ndarray/eigen.h:313:24: error: 'coeffRef' declared as an 'inline' field\r\n inline T\u0026 coeffRef(Index index) const {\r\n ^~~~~\r\n/home/nbecker/.local/include/ndarray/eigen.h:313:15: error: expected ';' at end of member declaration\r\n inline T\u0026 coeffRef(Index index) const {\r\n ^~~~~~~~\r\n/home/nbecker/.local/include/ndarray/eigen.h:313:24: error: redeclaration of 'T\u0026 ndarray::EigenView\u003cT, N, C, XprKind_, Rows_, Cols_\u003e::coeffRef'\r\n inline T\u0026 coeffRef(Index index) const {\r\n ^~~~~\r\n/home/nbecker/.local/include/ndarray/eigen.h:305:24: note: previous declaration 'T\u0026 ndarray::EigenView\u003cT, N, C, XprKind_, Rows_, Cols_\u003e::coeffRef'\r\n inline T\u0026 coeffRef(Index row, Index col) const {\r\n ^~~~~\r\n/home/nbecker/.local/include/ndarray/eigen.h:313:30: error: expected ')' before 'index'\r\n inline T\u0026 coeffRef(Index index) const {\r\n ^~~~~\r\n/home/nbecker/.local/include/ndarray/eigen.h:317:24: error: 'coeffRef' declared as an 'inline' field\r\n inline T\u0026 coeffRef(Index index) {\r\n ^~~~~\r\n/home/nbecker/.local/include/ndarray/eigen.h:317:15: error: expected ';' at end of member declaration\r\n inline T\u0026 coeffRef(Index index) {\r\n ^~~~~~~~\r\n/home/nbecker/.local/include/ndarray/eigen.h:317:24: error: redeclaration of 'T\u0026 ndarray::EigenView\u003cT, N, C, XprKind_, Rows_, Cols_\u003e::coeffRef'\r\n inline T\u0026 coeffRef(Index index) {\r\n ^~~~~\r\n/home/nbecker/.local/include/ndarray/eigen.h:305:24: note: previous declaration 'T\u0026 ndarray::EigenView\u003cT, N, C, XprKind_, Rows_, Cols_\u003e::coeffRef'\r\n inline T\u0026 coeffRef(Index row, Index col) const {\r\n ^~~~~\r\n/home/nbecker/.local/include/ndarray/eigen.h:317:30: error: expected ')' before 'index'\r\n inline T\u0026 coeffRef(Index index) {\r\n ^~~~~\r\n/home/nbecker/.local/include/ndarray/eigen.h:322:32: error: 'Index' has not been declared\r\n inline PacketScalar packet(Index row, Index col) const {\r\n ^~~~~\r\n/home/nbecker/.local/include/ndarray/eigen.h:322:43: error: 'Index' has not been declared\r\n inline PacketScalar packet(Index row, Index col) const {\r\n ^~~~~\r\n/home/nbecker/.local/include/ndarray/eigen.h:329:32: error: 'Index' has not been declared\r\n inline PacketScalar packet(Index index) const {\r\n ^~~~~\r\n/home/nbecker/.local/include/ndarray/eigen.h:337:29: error: 'Index' has not been declared\r\n inline void writePacket(Index row, Index col, const PacketScalar\u0026 x) {\r\n ^~~~~\r\n/home/nbecker/.local/include/ndarray/eigen.h:337:40: error: 'Index' has not been declared\r\n inline void writePacket(Index row, Index col, const PacketScalar\u0026 x) {\r\n ^~~~~\r\n/home/nbecker/.local/include/ndarray/eigen.h:345:29: error: 'Index' has not been declared\r\n inline void writePacket(Index index, const PacketScalar\u0026 x) {\r\n ^~~~~\r\n/home/nbecker/.local/include/ndarray/eigen.h: In member function 'ndarray::EigenView\u003cT, N, C, XprKind_, Rows_, Cols_\u003e::PacketScalar ndarray::EigenView\u003cT, N, C, XprKind_, Rows_, Cols_\u003e::packet(int, int) const':\r\n/home/nbecker/.local/include/ndarray/eigen.h:324:39: error: there are no arguments to 'colStride' that depend on a template parameter, so a declaration of 'colStride' must be available [-fpermissive]\r\n _array.getData() + (col * colStride() + row * rowStride())\r\n ^~~~~~~~~\r\n/home/nbecker/.local/include/ndarray/eigen.h:324:39: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)\r\n/home/nbecker/.local/include/ndarray/eigen.h:324:59: error: there are no arguments to 'rowStride' that depend on a template parameter, so a declaration of 'rowStride' must be available [-fpermissive]\r\n _array.getData() + (col * colStride() + row * rowStride())\r\n ^~~~~~~~~\r\n/home/nbecker/.local/include/ndarray/eigen.h: In member function 'ndarray::EigenView\u003cT, N, C, XprKind_, Rows_, Cols_\u003e::PacketScalar ndarray::EigenView\u003cT, N, C, XprKind_, Rows_, Cols_\u003e::packet(int) const':\r\n/home/nbecker/.local/include/ndarray/eigen.h:332:40: error: there are no arguments to 'innerStride' that depend on a template parameter, so a declaration of 'innerStride' must be available [-fpermissive]\r\n _array.getData() + index * innerStride()\r\n ^~~~~~~~~~~\r\n/home/nbecker/.local/include/ndarray/eigen.h: In member function 'void ndarray::EigenView\u003cT, N, C, XprKind_, Rows_, Cols_\u003e::writePacket(int, int, const PacketScalar\u0026)':\r\n/home/nbecker/.local/include/ndarray/eigen.h:340:39: error: there are no arguments to 'colStride' that depend on a template parameter, so a declaration of 'colStride' must be available [-fpermissive]\r\n _array.getData() + (col * colStride() + row * rowStride()), x\r\n ^~~~~~~~~\r\n/home/nbecker/.local/include/ndarray/eigen.h:340:59: error: there are no arguments to 'rowStride' that depend on a template parameter, so a declaration of 'rowStride' must be available [-fpermissive]\r\n _array.getData() + (col * colStride() + row * rowStride()), x\r\n ^~~~~~~~~\r\n/home/nbecker/.local/include/ndarray/eigen.h: In member function 'void ndarray::EigenView\u003cT, N, C, XprKind_, Rows_, Cols_\u003e::writePacket(int, const PacketScalar\u0026)':\r\n/home/nbecker/.local/include/ndarray/eigen.h:349:40: error: there are no arguments to 'innerStride' that depend on a template parameter, so a declaration of 'innerStride' must be available [-fpermissive]\r\n _array.getData() + index * innerStride(), x\r\n ^~~~~~~~~~~\r\n```","author":{"url":"https://github.com/nbecker","@type":"Person","name":"nbecker"},"datePublished":"2017-07-11T14:22:13.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/58/ndarray/issues/58"}
| 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:515cdd1e-0278-aa1e-a278-8de7935b823e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EA90:C8602:2809DBB:3536C86:6971C524 |
| html-safe-nonce | 16ada2520cd3052988ad9781f46daafd77119b3a04d0be2b1b308763b171d609 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQTkwOkM4NjAyOjI4MDlEQkI6MzUzNkM4Njo2OTcxQzUyNCIsInZpc2l0b3JfaWQiOiIxNDI4NzIzMDQxNzQxOTQ4MTk2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | bee9552118d9d71e7e312e84bfe22342a6ccc2667bfec34949ea8fd79318cebd |
| hovercard-subject-tag | issue:242065900 |
| 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/ndarray/ndarray/58/issue_layout |
| twitter:image | https://opengraph.githubassets.com/85a0fb620f6982952fa4f5a1ccc211e804c59ac005a285e9b86c2bbcff70fafb/ndarray/ndarray/issues/58 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/85a0fb620f6982952fa4f5a1ccc211e804c59ac005a285e9b86c2bbcff70fafb/ndarray/ndarray/issues/58 |
| og:image:alt | A new problem when using with gcc-7.1? In file included from /home/nbecker/.local/include/ndarray/converter/eigen.h:19:0, from /home/nbecker/.local/include/ndarray/pybind11.h:51, from pn2.cc:4: /ho... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | nbecker |
| hostname | github.com |
| expected-hostname | github.com |
| None | ac615aa66802dad9a938c6abe95edf09ee43c0c7f508315b64b08612858ef32e |
| turbo-cache-control | no-preview |
| go-import | github.com/ndarray/ndarray git https://github.com/ndarray/ndarray.git |
| octolytics-dimension-user_id | 1451802 |
| octolytics-dimension-user_login | ndarray |
| octolytics-dimension-repository_id | 3487413 |
| octolytics-dimension-repository_nwo | ndarray/ndarray |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3487413 |
| octolytics-dimension-repository_network_root_nwo | ndarray/ndarray |
| 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 | 6b618569a5f93e0b31f97f620112341421ef5f69 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width