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++/17232] classes and class template specializations treated differently w.r.t. core issue #337


------- Additional Comments From bangerth at dealii dot org  2004-08-30 16:05 -------
So do we agree that the problem in this PR is really this: 
- for the non-template, the compiler realizes that B is abstract 
  and that therefore no array type can exist; it therefore rejects 
  the template version of g and goes with the general one 
- for the template class A, the compiler doesn't realize the  
  abstractness and therefore goes with the template version of g 
Is this indeed the reason the testcase fails? I double-checked that 
if I remove the '=0' declaration in the two classes, that the testcase 
really succeeds. 
 
W. 

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17232


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