[Bug c++/71586] type confusion when bitfields are accessed from templates
gnubugzilla@martin-kaesberger.de
gcc-bugzilla@gcc.gnu.org
Sun Jun 19 23:24:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71586
--- Comment #1 from M K <gnubugzilla@martin-kaesberger.de> ---
the following error occurs:
main.cpp:20:18: error: no matching function for call to 'foo(unsigned char:1&)'
foo(s2.sa); //error
^
main.cpp:4:6: note: candidate: void foo(a) <near match>
void foo(a e) { }
^
main.cpp:4:6: note: conversion of argument 1 would be ill-formed:
main.cpp:5:6: note: candidate: void foo(b) <near match>
void foo(b e) { }
^
main.cpp:5:6: note: conversion of argument 1 would be ill-formed:
More information about the Gcc-bugs
mailing list