daeken / daeken/libmoonage

reinterpret_cast error

Open
#2 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
71
Forks
9
PR merge metrics
No merged PRs in 30d

Description

I get compiler errors from the reinterpret_casts in common.h. I've tried GCC-{8,910,}. clang-{9,11}, and visual studio. What compiler is supported?

```
C:\Users\snaph\Downloads\libmoonage-master\common.h:18:100: warning: ignoring attributes applied to dependent type 'T' without an associated declaration [-Wattributes]
template using Vector128 = T __attribute__((ext_vector_type(16 / sizeof(T)), unaligned));
^
In file included from C:\Users\snaph\Downloads\libmoonage-master\disassembler.generated.cpp:4:
C:\Users\snaph\Downloads\libmoonage-master\common.h: In function 'Vector128 VectorCountBits(Vector128, long int)':
C:\Users\snaph\Downloads\libmoonage-master\common.h:199:57: error: invalid cast from type 'Vector128' {aka 'float'} to type 'Vector128' {aka 'unsigned char'}
auto ivec = reinterpret_cast>(vec);
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.