This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/14278] [3.4/3.5 Regression] fails when calling through a function pointer
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Feb 2004 19:30:04 -0000
- Subject: [Bug c++/14278] [3.4/3.5 Regression] fails when calling through a function pointer
- References: <20040224185813.14278.jbrandmeyer@earthlink.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From bangerth at dealii dot org 2004-02-26 19:30 -------
I don't think that's the problem here. This code should
be valid, then:
------------------------
struct X {
X(int p);
};
struct A {
A(X);
};
int (*p_fun)(int, int);
A a(X ((*(int (*)(int, int)) p_fun)(0, 0)));
---------------------
since we only cast p_fun to its exact same type. It fails with the
same error, though.
W.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14278