public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/20174] New: rejects valid partial template function specialization
@ 2005-02-23 20:51 sstrasser at systemhaus-gruppe dot de
2005-02-23 22:54 ` [Bug c++/20174] " pinskia at gcc dot gnu dot org
0 siblings, 1 reply; 2+ messages in thread
From: sstrasser at systemhaus-gruppe dot de @ 2005-02-23 20:51 UTC (permalink / raw)
To: gcc-bugs
...and I have another one, this is gcc bug finding day.
it's again related to partial template function specializations, but I open a
new report because this time it is rejects-valid:
(at least I think so)
template<typename AT>
struct A{
template<typename T>
void function(){}
};
template<>
template<typename TTT>
void A<int>::function<TTT>(){}
error: partial specialization `function<TTT>' of function template
that's right, but why is this an error?
if function has a parameter of type T, so you can specialize it without
explicitly giving a template parameter, it works.
(...::function(TTT){})
Comeau accepts both.
--
Summary: rejects valid partial template function specialization
Product: gcc
Version: 3.4.4
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: sstrasser at systemhaus-gruppe dot de
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20174
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug c++/20174] rejects valid partial template function specialization
2005-02-23 20:51 [Bug c++/20174] New: rejects valid partial template function specialization sstrasser at systemhaus-gruppe dot de
@ 2005-02-23 22:54 ` pinskia at gcc dot gnu dot org
0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-02-23 22:54 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-02-23 18:36 -------
*** This bug has been marked as a duplicate of 14494 ***
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20174
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-02-23 18:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-23 20:51 [Bug c++/20174] New: rejects valid partial template function specialization sstrasser at systemhaus-gruppe dot de
2005-02-23 22:54 ` [Bug c++/20174] " pinskia at gcc dot gnu 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).