[Bug c++/14278] [3.4/3.5 Regression] fails when calling through a function pointer

bangerth at dealii dot org gcc-bugzilla@gcc.gnu.org
Thu Feb 26 19:30:00 GMT 2004


------- 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



More information about the Gcc-bugs mailing list