[Bug c++/58855] Attributes ignored on type alias in template
gcc at ebasoft dot com.pl
gcc-bugzilla@gcc.gnu.org
Sun Jan 30 09:56:12 GMT 2022
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58855
gcc at ebasoft dot com.pl changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |gcc at ebasoft dot com.pl
--- Comment #3 from gcc at ebasoft dot com.pl ---
This bug is still present in gcc version 11.2.1 20220115
namespace concepts
{
template<typename T>
concept arithmetic = std::integral<T> || std::floating_point<T>;
}
template<concepts::arithmetic T>
using point_vector = T __attribute__((__vector_size__(sizeof(T)*2)));
warning: ignoring attributes applied to dependent type ‘T’ without an
associated declaration [-Wattributes]
70 | using point_vector = T
__attribute__((__vector_size__(sizeof(T)*2)));
|
^
More information about the Gcc-bugs
mailing list