This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
farg
- To: <gcc-bugs at gcc dot gnu dot org>
- Subject: farg
- From: "Maciej Hrebien" <m_hrebien at poczta dot onet dot pl>
- Date: Sat, 24 Mar 2001 13:41:33 +0100
Hello!!
Please look at this:
#include <iostream.h>
struct S
{ int a;
S(int x):a(x){}
};
void fun(S* s, S& z)
{
cout<<(*s).a<<" "<<z.a<<endl;
}
main()
{
S o(11);
fun(&S(10),o);
fun(&o,S(10)); // !!!
return 0;
}
g++-2.95.2 gives me some errors in line marked with "!!!".
Why?? It shoudn't be problems with this.
Maciej Hrebien
--