public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/12120] New: One specialization form not allowed in GCC 3.x (C++ 98: 14.7.3.9)
@ 2003-09-01 2:10 adah at netstd dot com
2003-09-01 3:32 ` [Bug c++/12120] " pinskia at gcc dot gnu dot org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: adah at netstd dot com @ 2003-09-01 2:10 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12120
Summary: One specialization form not allowed in GCC 3.x (C++ 98:
14.7.3.9)
Product: gcc
Version: 3.3.1
Status: UNCONFIRMED
Severity: minor
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: adah at netstd dot com
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: minw32
GCC host triplet: minw32
GCC target triplet: minw32
This is a platform-independent bug. I confirmed that it exists at least also
in gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5).
My gcc configuration options:
Configured with: ../gcc/configure --with-gcc --with-gnu-ld --with-gnu-as --
host=mingw32 --target=mingw32 --prefix=/mingw --enable-threads --disable-nls --
enable-languages=c,c++,f77,objc,ada,java --disable-win32-registry --disable-
shared --enable-sjlj-exceptions --enable-libgcj --disable-java-awt --without-x -
-enable-java-gc=boehm --disable-libgcj-debug --enable-interpreter --enable-hash-
synchronization
Thread model: win32
gcc version 3.3.1 (mingw special 20030804-1)
According to C++ standard 14.7.3.9, specializations in the forms "namespace xxx
{ template<> class yyy<special> ... }" and "template<> class
xxx::yyy<special> ..." are both allowed. Apparently GCC only accepts the
former form. The latter form will trigger an error like "specializing `struct
__gnu_cxx::hash<my_obj>' in different namespace".
Some examples are given in
http://gcc.gnu.org/ml/gcc/2003-08/msg01780.html
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/12120] One specialization form not allowed in GCC 3.x (C++ 98: 14.7.3.9)
2003-09-01 2:10 [Bug c++/12120] New: One specialization form not allowed in GCC 3.x (C++ 98: 14.7.3.9) adah at netstd dot com
@ 2003-09-01 3:32 ` pinskia at gcc dot gnu dot org
2003-09-01 5:22 ` adah at netstd dot com
2003-09-02 19:29 ` bangerth at dealii dot org
2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-09-01 3:32 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12120
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-09-01 03:32 -------
Read the follow so this bug is invalid.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/12120] One specialization form not allowed in GCC 3.x (C++ 98: 14.7.3.9)
2003-09-01 2:10 [Bug c++/12120] New: One specialization form not allowed in GCC 3.x (C++ 98: 14.7.3.9) adah at netstd dot com
2003-09-01 3:32 ` [Bug c++/12120] " pinskia at gcc dot gnu dot org
@ 2003-09-01 5:22 ` adah at netstd dot com
2003-09-02 19:29 ` bangerth at dealii dot org
2 siblings, 0 replies; 4+ messages in thread
From: adah at netstd dot com @ 2003-09-01 5:22 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12120
------- Additional Comments From adah at netstd dot com 2003-09-01 05:22 -------
Although I did not understand your "read the follow", a re-reading of 14.7.3.9
shows that I misunderstood the C++ standard. A forward declaration inside the
namespace is needed to specialize the template outside the namespace. So GCC 3
is conformant and I was wrong.
Thank you for taking the time to analyse. However, please be more specifc if I
misreport again, in case I cannot catch the point. :-)
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/12120] One specialization form not allowed in GCC 3.x (C++ 98: 14.7.3.9)
2003-09-01 2:10 [Bug c++/12120] New: One specialization form not allowed in GCC 3.x (C++ 98: 14.7.3.9) adah at netstd dot com
2003-09-01 3:32 ` [Bug c++/12120] " pinskia at gcc dot gnu dot org
2003-09-01 5:22 ` adah at netstd dot com
@ 2003-09-02 19:29 ` bangerth at dealii dot org
2 siblings, 0 replies; 4+ messages in thread
From: bangerth at dealii dot org @ 2003-09-02 19:29 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12120
------- Additional Comments From bangerth at dealii dot org 2003-09-02 19:29 -------
I think Andrew wanted to point you to
http://gcc.gnu.org/bugs.html
but forgot to add the link...
W.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-09-02 19:29 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-01 2:10 [Bug c++/12120] New: One specialization form not allowed in GCC 3.x (C++ 98: 14.7.3.9) adah at netstd dot com
2003-09-01 3:32 ` [Bug c++/12120] " pinskia at gcc dot gnu dot org
2003-09-01 5:22 ` adah at netstd dot com
2003-09-02 19:29 ` bangerth at dealii dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).