delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/01/10/04:21:11

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
To: cygwin AT cygwin DOT com
Cc: tamu AT sel DOT rdc DOT toshiba DOT co DOT jp
Subject: GCC 2.95.3-5 Internal Compiler Error for template, friend
X-Mailer: Mew version 1.94.1 on XEmacs 21.1 (Bryce Canyon)
Mime-Version: 1.0
Message-Id: <20020110182041V.tamu@sel.rdc.toshiba.co.jp>
Date: Thu, 10 Jan 2002 18:20:41 +0900
From: Humitaka Tamura <tamu AT sel DOT rdc DOT toshiba DOT co DOT jp>
X-Dispatcher: imput version 990905(IM130)
Lines: 24

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019