This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/17232] classes and class template specializations treated differently w.r.t. core issue #337
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Aug 2004 16:05:26 -0000
- Subject: [Bug c++/17232] classes and class template specializations treated differently w.r.t. core issue #337
- References: <20040829175551.17232.cludwig@cdc.informatik.tu-darmstadt.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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