public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/7052: ICE when declaring a function already defined as a friend method of a template class
@ 2002-06-17  5:16 paolo
  0 siblings, 0 replies; 2+ messages in thread
From: paolo @ 2002-06-17  5:16 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, nicolas.tisserand, nobody

Synopsis: ICE when declaring a function already defined as a friend method of a template class

State-Changed-From-To: open->closed
State-Changed-By: paolo
State-Changed-When: Mon Jun 17 05:10:44 2002
State-Changed-Why:
    Duplicate, without output of -v, of c++/7053.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7052


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

* c++/7052: ICE when declaring a function already defined as a friend method of a template class
@ 2002-06-17  4:06 nicolas.tisserand
  0 siblings, 0 replies; 2+ messages in thread
From: nicolas.tisserand @ 2002-06-17  4:06 UTC (permalink / raw)
  To: gcc-gnats, debian-gcc


>Number:         7052
>Category:       c++
>Synopsis:       ICE when declaring a function already defined as a friend method of a template class
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-legal-code
>Submitter-Id:   net
>Arrival-Date:   Mon Jun 17 03:56:02 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        3.1.1 20020606 (Debian prerelease) (Debian testing/unstable)
>Organization:
LRDE
>Environment:
System: Linux ouarzazate 2.4.17 #1 Sun Mar 10 19:25:30 CET 2002 i686 unknown
Architecture: i686

	
host: i386-pc-linux-gnu
build: i386-pc-linux-gnu
target: i386-pc-linux-gnu
configured with: /mnt/data/gcc-3.1/gcc-3.1-3.1.1ds1/src/configure -v --enable-languages=c,c++,java,f77,proto,objc,ada --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/g++-v3-3.1 --enable-shared --with-system-zlib --enable-long-long --enable-nls --without-included-gettext --enable-clocale=gnu --enable-threads=posix --enable-java-gc=boehm --enable-objc-gc i386-linux
>Description:

gcc does not tolerate a redeclaration of a friend method,
oustside of its original class, when the parameter is
template dependent.

>How-To-Repeat:

template <class T>
struct A
{
  friend void bar(A<T> a) {}
};

void bar(A<int>);

int main()
{
  A<int> a;

  bar(a);
}

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


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

end of thread, other threads:[~2002-06-17 12:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-06-17  5:16 c++/7052: ICE when declaring a function already defined as a friend method of a template class paolo
  -- strict thread matches above, loose matches on Subject: below --
2002-06-17  4:06 nicolas.tisserand

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).