public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/52625] New: Incorrect specialization semantics of friend class template declaration
@ 2012-03-19 20:13 daniel.kruegler at googlemail dot com
  2012-03-20  7:59 ` [Bug c++/52625] " tsoae at mail dot ru
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: daniel.kruegler at googlemail dot com @ 2012-03-19 20:13 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 52625
           Summary: Incorrect specialization semantics of friend class
                    template declaration
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: daniel.kruegler@googlemail.com


gcc 4.8.0 20120318 (experimental) rejects the following code:

//-----
template<class>
class base {};

class derived : public base<derived>
{
 template<class> friend class base; // Error
};
//-----

"error: specialization of 'base<derived>' after instantiation"

This code should be accepted, the friend declaration does not declare any
specialization.


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

end of thread, other threads:[~2021-05-21 15:19 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-19 20:13 [Bug c++/52625] New: Incorrect specialization semantics of friend class template declaration daniel.kruegler at googlemail dot com
2012-03-20  7:59 ` [Bug c++/52625] " tsoae at mail dot ru
2012-03-20  9:01 ` daniel.kruegler at googlemail dot com
2012-03-20 16:20 ` redi at gcc dot gnu.org
2021-04-07 19:33 ` [Bug c++/52625] [8/9/10/11 Regression] " jason at gcc dot gnu.org
2021-04-07 21:34 ` cvs-commit at gcc dot gnu.org
2021-04-07 21:37 ` [Bug c++/52625] [8/9/10 " jason at gcc dot gnu.org
2021-05-14  9:46 ` [Bug c++/52625] [9/10 " jakub at gcc dot gnu.org
2021-05-20 21:35 ` cvs-commit at gcc dot gnu.org
2021-05-21 14:50 ` cvs-commit at gcc dot gnu.org
2021-05-21 15:19 ` jason at gcc dot gnu.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).