public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/7641: friend declaration of nested types doesn't compile
@ 2002-12-01 6:46 Kriang Lerdsuwanakij
0 siblings, 0 replies; 4+ messages in thread
From: Kriang Lerdsuwanakij @ 2002-12-01 6:46 UTC (permalink / raw)
To: lerdsuwa; +Cc: gcc-prs
The following reply was made to PR c++/7641; it has been noted by GNATS.
From: Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
To: gcc-gnats@gcc.gnu.org, gcc-prs@gcc.gnu.org, lerdsuwa@gcc.gnu.org,
dv@vollmann.ch, gcc-bugs@gcc.gnu.org
Cc:
Subject: Re: c++/7641: friend declaration of nested types doesn't compile
Date: Sun, 01 Dec 2002 21:42:24 +0700
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7641
This code has never been handled correctly by gcc or egcs.
Although egcs-1.1.2 accepts it, it behaves the same regardless
of whether the template friend is declared or not, i.e.
that template friend is silently ignored by egcs. So this
is actually not a regression. I mark this report down to
medium priority.
--Kriang
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: c++/7641: friend declaration of nested types doesn't compile
@ 2003-01-28 17:04 bangerth
0 siblings, 0 replies; 4+ messages in thread
From: bangerth @ 2003-01-28 17:04 UTC (permalink / raw)
To: dv, gcc-bugs, gcc-prs, lerdsuwa
Synopsis: friend declaration of nested types doesn't compile
State-Changed-From-To: analyzed->closed
State-Changed-By: bangerth
State-Changed-When: Tue Jan 28 17:04:38 2003
State-Changed-Why:
Works now in 3.4. Probably thanks to one of Kriang's patches.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7641
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: c++/7641: friend declaration of nested types doesn't compile
@ 2002-08-19 23:06 Andrew Pinski
0 siblings, 0 replies; 4+ messages in thread
From: Andrew Pinski @ 2002-08-19 23:06 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR c++/7641; it has been noted by GNATS.
From: Andrew Pinski <pinskia@physics.uc.edu>
To: Detlef Vollmann <dv@vollmann.ch>
Cc: gcc-gnats@gcc.gnu.org
Subject: Re: c++/7641: friend declaration of nested types doesn't compile
Date: Mon, 19 Aug 2002 21:02:16 -0400
This is a regression (it works) from 2.91.66:
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/specs
gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
It ice in gcc 2.95.3 though:
Reading specs from /usr/lib/gcc-lib/i386-unknown-openbsd3.1/2.95.3/specs
gcc version 2.95.3 20010125 (prerelease)
It gives an error in redHat's gcc 2.96:
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-112)
friend.cc:9: typename type `typename A<T>::B' declared `friend'
Thanks,
Andrew Pinski
^ permalink raw reply [flat|nested] 4+ messages in thread
* c++/7641: friend declaration of nested types doesn't compile
@ 2002-08-19 18:06 Detlef Vollmann
0 siblings, 0 replies; 4+ messages in thread
From: Detlef Vollmann @ 2002-08-19 18:06 UTC (permalink / raw)
To: gcc-gnats
>Number: 7641
>Category: c++
>Synopsis: friend declaration of nested types doesn't compile
>Confidential: no
>Severity: critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: rejects-legal
>Submitter-Id: net
>Arrival-Date: Mon Aug 19 17:36:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: Detlef Vollmann
>Release: 3.3 20020816 (experimental)
>Organization:
vollmann engineering gmbh
>Environment:
System: Linux octo 2.4.18-xfs-1.1 #1 Mon Jul 1 05:12:32 MEST 2002 i686 unknown
Architecture: i686
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: /dwarf/pdsrc/gcc/cvs/gcc/configure --program-suffix=-3 --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-version-specific-runtime-libs --enable-languages=c,c++
>Description:
The example code from the standard 14.5.3p6 doesn't compile.
>How-To-Repeat:
g++ -c friend.cpp
>Fix:
friend.cpp:
// template friend problem
template<class T> struct A
{
struct B { };
void f();
};
class C {
template<class T> friend struct A<T>::B;
template<class T> friend void A<T>::f();
};
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-01-28 17:04 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-01 6:46 c++/7641: friend declaration of nested types doesn't compile Kriang Lerdsuwanakij
-- strict thread matches above, loose matches on Subject: below --
2003-01-28 17:04 bangerth
2002-08-19 23:06 Andrew Pinski
2002-08-19 18:06 Detlef Vollmann
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).