https://gcc.gnu.org/bugzilla/show_bug.cgi?id=127353

--- Comment #5 from Ivan Lazaric <ivan.lazaric.gcc at gmail dot com> ---
Turns out I didn't understand `extract-ref`, and was missing `object_of()`
Fixed and simplified example exhibiting link failure:
```cpp
#include <meta>

template<typename>
struct storage {
  static inline int value = 2;
};

int main() {
    return extract<int&>(object_of(^^storage<int>::value));
}
```

https://godbolt.org/z/ev5s3837n
  • [Bug c++/127353] undefined ... ivan.lazaric.gcc at gmail dot com via Gcc-bugs
    • [Bug c++/127353] undef... ivan.lazaric.gcc at gmail dot com via Gcc-bugs

Reply via email to