[Bug c++/93589] Template instantiation creates a conversion warning when it should not

2020-02-20 Thread jrdowning at yahoo dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93589 --- Comment #8 from John Downing --- > (In reply to John Downing from comment #5) > > This will generate a warning, for the char and short cases, when the "|=" > > happens. This is despite "val" being explicitly declared as a char or an > >

[Bug c++/93589] Template instantiation creates a conversion warning when it should not

2020-02-20 Thread jrdowning at yahoo dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93589 --- Comment #9 from John Downing --- (In reply to Jason Merrill from comment #7) > Rather, it was suppressed for the simple case where the RHS has a suitable > type. As Jonathan says, (CHAR_BIT * static_cast(i)) has type int (it > would be

[Bug c++/93589] Template instantiation creates a conversion warning when it should not

2020-02-14 Thread jrdowning at yahoo dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93589 John Downing changed: What|Removed |Added CC||jrdowning at yahoo dot com --- Comment

[Bug c++/93589] Template instantiation creates a conversion warning when it should not

2020-03-18 Thread jrdowning at yahoo dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93589 John Downing changed: What|Removed |Added CC||jrdowning at yahoo dot com --- Comment