public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/16972] New: template specialization rejected
@ 2004-08-10 19:30 reichelt at gcc dot gnu dot org
  2004-08-10 19:34 ` [Bug c++/16972] " reichelt at gcc dot gnu dot org
  0 siblings, 1 reply; 2+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2004-08-10 19:30 UTC (permalink / raw)
  To: gcc-bugs

Trying to compile the following code snippet, I get an error message:

==================================================
template<int> struct A
{
    template<typename> void foo();
};

template<> template<typename> void A<0>::foo() {}
==================================================


bug.cc:6: error: template-id `foo<>' for `void A<0>::foo()' does not match any
template declaration
bug.cc:6: error: invalid function declaration


I think the code is valid, though I'm not 100% sure. At least icc accepts it.

Might be related to PR 14379.

-- 
           Summary: template specialization rejected
           Product: gcc
           Version: 3.5.0
            Status: UNCONFIRMED
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16972


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug c++/16972] template specialization rejected
  2004-08-10 19:30 [Bug c++/16972] New: template specialization rejected reichelt at gcc dot gnu dot org
@ 2004-08-10 19:34 ` reichelt at gcc dot gnu dot org
  0 siblings, 0 replies; 2+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2004-08-10 19:34 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From reichelt at gcc dot gnu dot org  2004-08-10 19:34 -------
It's a dupe. Sorry for the noise!


*** 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=16972


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-08-10 19:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-10 19:30 [Bug c++/16972] New: template specialization rejected reichelt at gcc dot gnu dot org
2004-08-10 19:34 ` [Bug c++/16972] " reichelt 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).