This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

c++/1806: Internal compiler error for template friend in namespace



>Number:         1806
>Category:       c++
>Synopsis:       Internal compiler error for template friend in namespace
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jan 29 14:56:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Jody Hagins
>Release:        unknown-1.0
>Organization:
>Environment:
Red Hat Linux release 6.1 (Cartman)
gcc version 2.95.2 19991024 (release)
>Description:
The following 7 line snippet produces a compiler error...

namespace Blarg
{
template <class T> class Foo
{
  template <class U> friend class Foo;
};
}
>How-To-Repeat:
Take the 7 lines from the Description and compile to see the internal compiler error.
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]