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: 29 Aug 2004 18:42:54 -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-29 18:42 -------
I don't presently have the time to figure things out, but here are
a few data points:
gcc2.95, 3.2.3, and 3.3.4 return 1
gcc3.4.1, gcc mainline, and icc8 return 0
Note also that the declaration
int g(T (*)[1])
is taking an argument of type pointer to array of T. However, as the
types you use are abstract, there can't be any arrays of these types
and this declaration should probably never match.
That doesn't invalidate your point, though, that the compiler should
probably treat template instances and non-template classes equivalently.
W.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17232