This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GCC 2.95.3-5 Internal Compiler Error for template, friend


Hello.

GCC 2.95.3-5 reports internal compiler error for the following source
code. Maybe it's only the cygwin special version's case, since other
versions of gcc (2.96, egcs-2.91.66) for Linux can compile it well.

--

class A
{
  public:
    void f() {}
};

template <class X> class C
{
    friend void A::f();
};

int main()
{
    C<int> a;
    return 0;
}

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


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