This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/4904: internal compiler error 19990331
- From: theverylittleone at hotmail dot com
- To: gcc-gnats at gcc dot gnu dot org
- Date: 19 Nov 2001 20:29:35 -0000
- Subject: c++/4904: internal compiler error 19990331
- Reply-to: theverylittleone at hotmail dot com
[Get raw message]
>Number: 4904
>Category: c++
>Synopsis: internal compiler error 19990331
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: unassigned
>State: open
>Class: rejects-legal
>Submitter-Id: net
>Arrival-Date: Mon Nov 19 12:36:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: Dan Marinescu
>Release: 2.95.3-6
>Organization:
>Environment:
irrelevant
>Description:
template <class T>
struct A
{
template <class U>
struct B
{
A<T>::template B<int> foo(void);
};
};
template <class T> template <class U>
A<T>::template B<int> A<T>::B<U>::foo(void)
{
return A<T>::template B<int>();
}
int main()
{
A<int>::template B<char> b;
b.foo();
}
This reports "Internal compiler error 19990331"
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: