This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/22354] g++ accepts specializiation without declaration
- From: "corey dot taylor at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Jul 2005 05:30:39 -0000
- Subject: [Bug c++/22354] g++ accepts specializiation without declaration
- References: <20050707190900.22354.tneumann@pi3.informatik.uni-mannheim.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From corey dot taylor at gmail dot com 2005-07-08 05:30 -------
The reason we decided to post this is many front ends were giving different
results: some errored out with diagnostic, some accepted, some accepted but
wouldn't allow proper declaration (considered it a redefinition which is against
pargraph 15 of the same section).
Considering that this implementation currently allows either method without
portability issues then the enhancement is definately optional as long as it
works properly as-is.
Just wanted to see if this (and we sent to other projects the same issue) is how
implementation was intended. I was part of the discussion on the list.
corey
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22354