public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/4003: ICE on template instantiation including friendship declaration.
@ 2002-03-18 5:49 jason
0 siblings, 0 replies; 4+ messages in thread
From: jason @ 2002-03-18 5:49 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, gdr, jason
Synopsis: ICE on template instantiation including friendship declaration.
State-Changed-From-To: analyzed->closed
State-Changed-By: jason
State-Changed-When: Mon Mar 18 05:49:09 2002
State-Changed-Why:
Fixed for 3.1 by
PR c++/4003
* pt.c (tsubst_friend_function): Use decl_namespace_context.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=4003
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: c++/4003: ICE on template instantiation including friendship declaration.
@ 2002-03-18 3:54 jason
0 siblings, 0 replies; 4+ messages in thread
From: jason @ 2002-03-18 3:54 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, gdr, jason, nobody
Synopsis: ICE on template instantiation including friendship declaration.
Responsible-Changed-From-To: unassigned->jason
Responsible-Changed-By: jason
Responsible-Changed-When: Mon Mar 18 03:54:52 2002
Responsible-Changed-Why:
got it
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=4003
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: c++/4003: ICE on template instantiation including friendship declaration.
@ 2002-02-26 12:01 nathan
0 siblings, 0 replies; 4+ messages in thread
From: nathan @ 2002-02-26 12:01 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, gdr, nobody
Synopsis: ICE on template instantiation including friendship declaration.
State-Changed-From-To: open->analyzed
State-Changed-By: nathan
State-Changed-When: Tue Feb 26 12:00:22 2002
State-Changed-Why:
confirmed 2.95 regression
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=4003
^ permalink raw reply [flat|nested] 4+ messages in thread
* c++/4003: ICE on template instantiation including friendship declaration.
@ 2001-08-11 3:46 gdr
0 siblings, 0 replies; 4+ messages in thread
From: gdr @ 2001-08-11 3:46 UTC (permalink / raw)
To: gcc-gnats
>Number: 4003
>Category: c++
>Synopsis: ICE on template instantiation including friendship declaration.
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: unassigned
>State: open
>Class: ice-on-legal-code
>Submitter-Id: net
>Arrival-Date: Sat Aug 11 03:46:05 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Gabriel Dos Reis (gdr@codesourcery.com)
>Release: GCC-3.0.1 and GCC-3.1
>Organization:
>Environment:
Immaterial
>Description:
The below produces an ICE. A regression over gcc-2.95.x
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: text/plain; name="sm.C"
Content-Disposition: inline; filename="sm.C"
template<typename> class BinaryTree;
template<typename T>
void move(BinaryTree<T>&, typename BinaryTree<T>::iterator,
BinaryTree<T>&, typename BinaryTree<T>::iterator);
template<class T>
class BinaryTree {
public:
class iterator {
private:
int i;
friend void move<T>(BinaryTree<T> &t1,iterator n1,
BinaryTree<T> &t2,iterator n2);
};
};
template<class T>
inline void move(BinaryTree<T> &t1, typename BinaryTree<T>::iterator n1,
BinaryTree<T> &t2, typename BinaryTree<T>::iterator n2)
{
int x = n1.i + n2.i; // this is the line that uses the friendship
}
int main() {
typedef BinaryTree<int> BT;
BT t;
BT::iterator n;
move(t, n, t, n);
}
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2002-03-18 13:49 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-03-18 5:49 c++/4003: ICE on template instantiation including friendship declaration jason
-- strict thread matches above, loose matches on Subject: below --
2002-03-18 3:54 jason
2002-02-26 12:01 nathan
2001-08-11 3:46 gdr
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).