public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/7228: ICE when using member template and template function
@ 2002-07-06 23:56 ndry
0 siblings, 0 replies; 4+ messages in thread
From: ndry @ 2002-07-06 23:56 UTC (permalink / raw)
To: gcc-gnats
>Number: 7228
>Category: c++
>Synopsis: ICE when using member template and template function
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: ice-on-legal-code
>Submitter-Id: net
>Arrival-Date: Sat Jul 06 23:56:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: ndry@mdcplus.com
>Release: 3.1.1pr and 3.0.4
>Organization:
>Environment:
>Description:
The following code crushes gcc 3.1.1 and 3.0.4 (but not 2.95.4).
-----------------------
#include<iostream>
template<int N>
struct S {
enum {I = N};
template<int NN>
struct rebind {
typedef S<NN> Type;
};
};
template<class S,class T>
void f(S& s, T& t)
{
typename S::rebind<t.I>::Type ss;
std::cout << ss.I << std::endl;
}
int main(){
S<0> s;
S<1> t;
f(s,t);
}
------------------
$ g++ test.cc
test.cc: In function `void f(S&, T&) [with S = S<0>, T = S<1>]':
test.cc:21: instantiated from here
test.cc:14: internal error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
>How-To-Repeat:
Compile the above.
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: c++/7228: ICE when using member template and template function
@ 2002-10-25 8:21 dje
0 siblings, 0 replies; 4+ messages in thread
From: dje @ 2002-10-25 8:21 UTC (permalink / raw)
To: dje, gcc-bugs, gcc-prs, ndry
Synopsis: ICE when using member template and template function
State-Changed-From-To: analyzed->closed
State-Changed-By: dje
State-Changed-When: Fri Oct 25 08:20:58 2002
State-Changed-Why:
Fixed in GCC 3.2.1 and GCC 3.3
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7228
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: c++/7228: ICE when using member template and template function
@ 2002-10-24 10:45 dje
0 siblings, 0 replies; 4+ messages in thread
From: dje @ 2002-10-24 10:45 UTC (permalink / raw)
To: dje, gcc-bugs, gcc-prs, ndry, nobody
Synopsis: ICE when using member template and template function
Responsible-Changed-From-To: unassigned->dje
Responsible-Changed-By: dje
Responsible-Changed-When: Thu Oct 24 10:45:13 2002
Responsible-Changed-Why:
looks helpful
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7228
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: c++/7228: ICE when using member template and template function
@ 2002-09-14 13:04 nathan
0 siblings, 0 replies; 4+ messages in thread
From: nathan @ 2002-09-14 13:04 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, ndry, nobody
Synopsis: ICE when using member template and template function
State-Changed-From-To: open->analyzed
State-Changed-By: nathan
State-Changed-When: Sat Sep 14 13:04:18 2002
State-Changed-Why:
confirmed. 2.96RH also ices, I cannot confirm that 2.95.4
is ok -- possible regressioin
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7228
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2002-10-25 15:21 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-06 23:56 c++/7228: ICE when using member template and template function ndry
2002-09-14 13:04 nathan
2002-10-24 10:45 dje
2002-10-25 8:21 dje
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).