public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/4905: unspecified internal compiler error
@ 2001-11-14  4:26 theverylittleone
  0 siblings, 0 replies; 3+ messages in thread
From: theverylittleone @ 2001-11-14  4:26 UTC (permalink / raw)
  To: gcc-gnats


>Number:         4905
>Category:       c++
>Synopsis:       unspecified internal compiler error
>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
  {
    template <class V>
    struct C
    {
      void foo();
    };
  };
};

template <class T> template <class U> template <class V>
void A<T>::template B<U>::template C<V>::foo(void)
{
}

int main()
{
  A<int>::template B<char>::template C<float> c;
  c.foo();
}



This reports an unspecified "internal compiler error"
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: c++/4905: unspecified internal compiler error
@ 2001-12-01 12:26 rodrigc
  0 siblings, 0 replies; 3+ messages in thread
From: rodrigc @ 2001-12-01 12:26 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR c++/4905; it has been noted by GNATS.

From: rodrigc@gcc.gnu.org
To: gcc-bugs@gcc.gnu.org, gcc-gnats@gcc.gnu.org, gcc-prs@gcc.gnu.org,
  nobody@gcc.gnu.org, theverylittleone@hotmail.com
Cc:  
Subject: Re: c++/4905: unspecified internal compiler error
Date: 1 Dec 2001 20:24:02 -0000

 Synopsis: unspecified internal compiler error
 
 State-Changed-From-To: open->closed
 State-Changed-By: rodrigc
 State-Changed-When: Sat Dec  1 12:24:01 2001
 State-Changed-Why:
     With gcc 3.0.3 your example produces no internal compiler error, but the following compilation errors:
     
     a.cc:17: too many template parameter lists in declaration of `void foo()'
     a.cc:17: syntax error before `{' token
     a.cc: In function `int main()':
     a.cc:22: parse error before `;' token
     a.cc:23: `c' undeclared (first use this function)
     a.cc:23: (Each undeclared identifier is reported only once for each function it
 
 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&pr=4905&database=gcc


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: c++/4905: unspecified internal compiler error
@ 2001-12-01 12:24 rodrigc
  0 siblings, 0 replies; 3+ messages in thread
From: rodrigc @ 2001-12-01 12:24 UTC (permalink / raw)
  To: gcc-bugs, gcc-gnats, gcc-prs, nobody, theverylittleone

Synopsis: unspecified internal compiler error

State-Changed-From-To: open->closed
State-Changed-By: rodrigc
State-Changed-When: Sat Dec  1 12:24:01 2001
State-Changed-Why:
    With gcc 3.0.3 your example produces no internal compiler error, but the following compilation errors:
    
    a.cc:17: too many template parameter lists in declaration of `void foo()'
    a.cc:17: syntax error before `{' token
    a.cc: In function `int main()':
    a.cc:22: parse error before `;' token
    a.cc:23: `c' undeclared (first use this function)
    a.cc:23: (Each undeclared identifier is reported only once for each function it

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&pr=4905&database=gcc


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2001-12-01 20:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-14  4:26 c++/4905: unspecified internal compiler error theverylittleone
2001-12-01 12:24 rodrigc
2001-12-01 12:26 rodrigc

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).