[Bug c++/2892] array addresses corrupted when using template classes

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed Apr 28 01:57:00 GMT 2004

------- Additional Comments From pinskia at gcc dot gnu dot org  2004-04-28 01:02 -------
On the mainline we get a warning:
pr2892.cc: In member function `void* X<T, F>::Foo(F) [with T = int[2], F = int[2]]':
pr2892.cc:46:   instantiated from here
pr2892.cc:8: warning: address of local variable `arg' returned

So I think this is invalid.

           What    |Removed                     |Added
           Keywords|rejects-valid               |
   Last reconfirmed|2004-02-16 05:12:48         |2004-04-28 01:02:53
               date|                            |


More information about the Gcc-bugs mailing list