This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/19092] g++ accepts code that violates 14.6.4.2
- From: "redi at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Jul 2005 00:25:31 -0000
- Subject: [Bug c++/19092] g++ accepts code that violates 14.6.4.2
- References: <20041220183129.19092.bagnara@cs.unipr.it>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From redi at gcc dot gnu dot org 2005-07-07 00:25 -------
Keywords should include "wrong-code", this program should return 0:
static int f(int i)
{
return 1;
}
int f(long l)
{
return 0;
}
template <typename T>
int g(T t)
{
return f(t);
}
int main()
{
return g(0);
}
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |redi at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19092