public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/7295: GCC 3.1 problem with templates
@ 2002-07-12 15:27 nathan
  0 siblings, 0 replies; 2+ messages in thread
From: nathan @ 2002-07-12 15:27 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, nobody, vincent.lascaux

Synopsis: GCC 3.1 problem with templates

State-Changed-From-To: open->closed
State-Changed-By: nathan
State-Changed-When: Fri Jul 12 15:27:07 2002
State-Changed-Why:
    dup of 7294

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


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

* c++/7295: GCC 3.1 problem with templates
@ 2002-07-12 14:16 vincent.lascaux
  0 siblings, 0 replies; 2+ messages in thread
From: vincent.lascaux @ 2002-07-12 14:16 UTC (permalink / raw)
  To: gcc-gnats


>Number:         7295
>Category:       c++
>Synopsis:       GCC 3.1 problem with templates
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          rejects-legal
>Submitter-Id:   net
>Arrival-Date:   Fri Jul 12 14:16:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Vincent Lascaux
>Release:        gcc version 3.1
>Organization:
>Environment:
winXP
>Description:
The following code leads to an "internal error"

main.cpp:
---------

template<template<class A> class CContainer>
struct CFoo
{
    typedef int i;
    CContainer<int> Foo;
};
template<class B>
struct CTest
{
    template<class A> struct value {};
    CFoo<value>::i CFooI;
};
int main() {}

g++ main.cpp
main.cpp: In instantiation of `CFoo<CTest<B>::value>':
main.cpp:11:   instantiated from here
main.cpp:3: internal error: Segmentation fault
>How-To-Repeat:
Compile the code
>Fix:
If you find one, please, tell me :)
>Release-Note:
>Audit-Trail:
>Unformatted:


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

end of thread, other threads:[~2002-07-12 22:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-12 15:27 c++/7295: GCC 3.1 problem with templates nathan
  -- strict thread matches above, loose matches on Subject: below --
2002-07-12 14:16 vincent.lascaux

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