This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]