[Bug c++/14156] no warning for address of parameter
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon Feb 16 13:18:00 GMT 2004
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-02-16 13:18 -------
New patch which also fixes it for returning fields parts of structs:
http://gcc.gnu.org/ml/gcc-patches/2004-02/msg01412.html
This will now warn:
struct ll
{
int i;
};
int *h(struct ll c)
{
return &c.i;/* { dg-warning "address" "" } */
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14156
More information about the Gcc-bugs
mailing list