3.2 critical bug?
Stefano Barbato
barbato@inquare.com
Thu Oct 24 05:56:00 GMT 2002
thanks, now i got it.
i made some tests and what it should be is a forward declaration of the
function "p" that returns a type_2 and takes a pointer to a function
returning a type_2 and no params.
---------------------
struct type_1
{};
struct type_2
{};
struct test
{
test(const type_1&)
{}
};
type_2 ft2()
{
}
int main()
{
test p(type_2())
p(&ft2);
}
--------------------
i got a link error here but that was expected..
stefano
More information about the Gcc-bugs
mailing list