You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to compile my code on macOS, using clang compiler, I get the following error :
ac_types-stable/include/ac_int.h:2501:11: error: no viable overloaded '|='
res |= h;
~~~ ^ ~
ac_types-stable/include/ac_int.h:2205:11: note: candidate template ignored: could not match 'ac_int<W, S>' against 'int'
ac_int &operator |= ( const ac_int<W2,S2> &op2 ) {
^
ac_types-stable/include/ac_int.h:2500:11: error: no viable overloaded '<<='
res <<= 4;
~~~ ^ ~
ac_types-stable/include/ac_fixed.h:971:7: note: in instantiation of member function 'ac_int<29, false>::bit_fill_hex' requested here
x.bit_fill_hex(str);
^
utils/cpp/src/MyUtils.cpp:220:7: note: in instantiation of member function 'ac_fixed<29, 29, false, AC_TRN, AC_SAT>::bit_fill_hex' requested here
a.bit_fill_hex(ss.str().c_str());
^
ac_types-stable/include/ac_int.h:2251:11: note: candidate template ignored: could not match 'ac_int<W2, true>' against 'int'
ac_int &operator <<= ( const ac_int<W2,true> &op2 ) {
^
ac_types-stable/include/ac_int.h:2259:11: note: candidate template ignored: could not match 'ac_int<W, false>' against 'int'
ac_int &operator <<= ( const ac_int<W2,false> &op2 ) {
^
A possible fix would be this :
in ac_int.h lines 2500, 2501 change from :
res <<= 4;¬
res |= h;¬
to
res <<= ac_int<W,S>(4);
res |= ac_int<W,S>(h);
Please review. Thanks.
The text was updated successfully, but these errors were encountered:
When trying to compile my code on macOS, using clang compiler, I get the following error :
A possible fix would be this :
in
ac_int.h
lines 2500, 2501 change from :to
Please review. Thanks.
The text was updated successfully, but these errors were encountered: