public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/5193: Problem with nested templates instanciation
@ 2002-06-07 7:40 lerdsuwa
0 siblings, 0 replies; 3+ messages in thread
From: lerdsuwa @ 2002-06-07 7:40 UTC (permalink / raw)
To: antoine.de-maricourt, gcc-bugs, gcc-prs, nobody
Synopsis: Problem with nested templates instanciation
State-Changed-From-To: open->analyzed
State-Changed-By: lerdsuwa
State-Changed-When: Fri Jun 7 07:40:42 2002
State-Changed-Why:
Confirmed.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5193
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: c++/5193: Problem with nested templates instanciation
@ 2002-10-26 2:23 lerdsuwa
0 siblings, 0 replies; 3+ messages in thread
From: lerdsuwa @ 2002-10-26 2:23 UTC (permalink / raw)
To: antoine.de-maricourt, gcc-bugs, gcc-prs, nobody
Synopsis: Problem with nested templates instanciation
State-Changed-From-To: analyzed->closed
State-Changed-By: lerdsuwa
State-Changed-When: Sat Oct 26 02:23:32 2002
State-Changed-Why:
Fixed in GCC 3.2. Now it complains about missing typename instead.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5193
^ permalink raw reply [flat|nested] 3+ messages in thread
* c++/5193: Problem with nested templates instanciation
@ 2001-12-25 17:16 antoine.de-maricourt
0 siblings, 0 replies; 3+ messages in thread
From: antoine.de-maricourt @ 2001-12-25 17:16 UTC (permalink / raw)
To: gcc-gnats
>Number: 5193
>Category: c++
>Synopsis: Problem with nested templates instanciation
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: rejects-legal
>Submitter-Id: net
>Arrival-Date: Tue Dec 25 17:16:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: A. de Maricourt
>Release: 3.0.3
>Organization:
>Environment:
i386-linux
>Description:
xx.cc: In function 'int foo()':
xx.cc:19: no matching function for call to 'aaa<int>::bbb<char*>::bbb(const char[4])'
xx.cc:5: candidates are ...
message is correct, but I was expecting 'aaa<float>::...' instead of 'aaa<int>::...' since Y is bound to float
See source code below
Note 1: I am unable to say if this is related to the two stage lookup feature that you mention, as I don't know what it is and I don't have the C++ specs.
Note 2: this code was isolated from a biger project, previously compiled using gcc 2.95 (didn't work either with 2.95 because I had a 'compiler error'). I expected 3.0 would allow me to rewrite it in a cleaner way.
Sorry if it's already known, or a some misunderstanding from my own.
Best regards,
>How-To-Repeat:
file xx.cc:
template <class A> class aaa {
public:
template <class B> struct bbb {
};
};
template <class X, class Y, class Z>
class xxx {
public:
typedef aaa<Y>::bbb<Z> ccc;
};
void foo (void)
{
xxx<int,float,char*>::ccc i ("aaa");
}
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-10-26 9:23 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-06-07 7:40 c++/5193: Problem with nested templates instanciation lerdsuwa
-- strict thread matches above, loose matches on Subject: below --
2002-10-26 2:23 lerdsuwa
2001-12-25 17:16 antoine.de-maricourt
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).