Hello, everyone.
I have a question about "One definition rule" for classes in different
translation units and gcc behaviour. Let us have the following
program:
//-- t1.cpp
#include
#include
class A
{
public:
A(){printf("1\n");a=1;}
int a;
};
void foo(void * a)
{
a = new A;
}
Hello.
I've been watching the sources of aliasing in gcc and found one
comment, that seemed to me a bit strange. In file `gcc/alias.c' in
function `get_alias_set':
> /* From the former common C and C++ langhook implementation:
>
> Unfortunately, there is no canonical form of a pointer type