public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/10038: ICE when trying to access multilple nested template structs
@ 2003-03-12 15:35 bangerth
  0 siblings, 0 replies; 2+ messages in thread
From: bangerth @ 2003-03-12 15:35 UTC (permalink / raw)
  To: francis.maes, gcc-bugs, gcc-prs, nicolas.tisserand, nobody

Synopsis: ICE when trying to access multilple nested template structs

State-Changed-From-To: open->analyzed
State-Changed-By: bangerth
State-Changed-When: Wed Mar 12 15:35:11 2003
State-Changed-Why:
    Confirmed. Crashes all versions since at least 2.95.

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


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

* c++/10038: ICE when trying to access multilple nested template structs
@ 2003-03-12 15:16 francis.maes
  0 siblings, 0 replies; 2+ messages in thread
From: francis.maes @ 2003-03-12 15:16 UTC (permalink / raw)
  To: gcc-gnats; +Cc: nicolas.tisserand


>Number:         10038
>Category:       c++
>Synopsis:       ICE when trying to access multilple nested template structs
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-legal-code
>Submitter-Id:   net
>Arrival-Date:   Wed Mar 12 15:16:01 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Francis Maes
>Release:        gcc version 3.4 20030302 (experimental)
>Organization:
>Environment:
Debian GNU/Linux unstable i586 
>Description:
template<template< class > class F>
struct Func
{
  template<typename T>
  struct Value : public F<T> {};
};

template<typename X>
struct First {
  template<typename Y>
  struct Res_ {
    typedef X Res;
  };
  typedef Func<Res_> Res;
};

int main()
{
// this lines produces an ICE
  typedef First<int>::Res::Value<float>::Res a;
// with the following line, it compiles properly
//typedef First<int>::Res_<float>::Res a;
}
>How-To-Repeat:
just compile
>Fix:

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


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

end of thread, other threads:[~2003-03-12 15:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-12 15:35 c++/10038: ICE when trying to access multilple nested template structs bangerth
  -- strict thread matches above, loose matches on Subject: below --
2003-03-12 15:16 francis.maes

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