public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/10398: [3.4 regression] ICE with missing typename keyword
@ 2003-04-14 11:56 Christian Ehrhardt
  0 siblings, 0 replies; 2+ messages in thread
From: Christian Ehrhardt @ 2003-04-14 11:56 UTC (permalink / raw)
  To: gcc-gnats; +Cc: Giovanni Bajo


>Number:         10398
>Category:       c++
>Synopsis:       [3.4 regression] ICE with missing typename keyword
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-illegal-code
>Submitter-Id:   net
>Arrival-Date:   Mon Apr 14 11:56:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Christian Ehrhardt
>Release:        gcc-3.4
>Organization:
>Environment:
SunOS theseus 5.9 Generic_112233-03 sun4u sparc SUNW,Ultra-4
>Description:
This is what remains from PR 10394 after Giovanni's analysis.
I'll close 10394 once this has a PR number.

The following piece of code gives an ICE with 3.4.

 template <class T>
 struct A
 { 
   template <class U>
   class B {};
 };
  
 template <class V>
 struct C
 { 
   C()
   {
       A<typename V::X>::template B<int> k;
   }
 };
 
 struct E
 {
   typedef int X;
 };
 
 template struct C<E>;
 
 int main()
 {}

theseus$ ~/gcc-3.4-cvs/build/gcc/cc1plus  10394.cc -quiet
10394.cc: In constructor `C<V>::C()':
10394.cc:13: error: expected `;'
10394.cc: In constructor `C<V>::C() [with V = E]':
10394.cc:22:   instantiated from here
10394.cc:13: internal compiler error: in resolve_offset_ref, at cp/init.c:1841
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

  regards  Christian
>How-To-Repeat:
.
>Fix:
Add typename before the definition of k.
>Release-Note:
>Audit-Trail:
>Unformatted:


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

* Re: c++/10398: [3.4 regression] ICE with missing typename keyword
@ 2003-04-14 12:02 ehrhardt
  0 siblings, 0 replies; 2+ messages in thread
From: ehrhardt @ 2003-04-14 12:02 UTC (permalink / raw)
  To: ehrhardt, gcc-bugs, gcc-prs, giovannibajo, nobody

Synopsis: [3.4 regression] ICE with missing typename keyword

State-Changed-From-To: open->analyzed
State-Changed-By: cae
State-Changed-When: Mon Apr 14 12:02:16 2003
State-Changed-Why:
    This was originally reported by Giovanni in PR 10394 and I can confirm
    this as a 3.4 regression.
    

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


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

end of thread, other threads:[~2003-04-14 12:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-14 11:56 c++/10398: [3.4 regression] ICE with missing typename keyword Christian Ehrhardt
2003-04-14 12:02 ehrhardt

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