[Bug c++/11856] Wrong warning regarding assert
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Fri Aug 8 16:10:00 GMT 2003
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11856
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |diagnostic
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-08-08 16:10 -------
With this code:
template <typename t>
void f(t c) {
assert(0 <= c and c <= 2);
}
int main() {
f<unsigned char>(5);
}
I only get a warning on instantiation.
More information about the Gcc-bugs
mailing list