This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/27347] [4.0/4.1/4.2 Regression] static array member specialization failure
- From: "mmitchel at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Jun 2006 22:17:29 -0000
- Subject: [Bug c++/27347] [4.0/4.1/4.2 Regression] static array member specialization failure
- References: <bug-27347-10484@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from mmitchel at gcc dot gnu dot org 2006-06-14 22:17 -------
I'm not convinced this is a bug in G++.
If the first line were:
template<class T> struct type_name { static char const name[1]; };
then there would be no question that the specialization was invalid. Since the
type of an array variable is indeed determined by its initializer, I don't see
any different between that case and the case in the test case.
I've sent mail to EDG to clarify.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27347