This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/11856] Wrong warning regarding assert
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Aug 2003 16:10:41 -0000
- Subject: [Bug c++/11856] Wrong warning regarding assert
- References: <20030808142556.11856.o.kullmann@swansea.ac.uk>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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.