public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: vincent.lascaux@ifrance.com
To: gcc-gnats@gcc.gnu.org
Subject: c++/7294: GCC 3.1 problem with templates
Date: Fri, 12 Jul 2002 14:16:00 -0000	[thread overview]
Message-ID: <20020712210959.31164.qmail@sources.redhat.com> (raw)


>Number:         7294
>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:15:59 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:


             reply	other threads:[~2002-07-12 21:16 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-12 14:16 vincent.lascaux [this message]
2002-07-12 14:40 nathan
2002-07-12 14:56 Vincent Lascaux

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020712210959.31164.qmail@sources.redhat.com \
    --to=vincent.lascaux@ifrance.com \
    --cc=gcc-gnats@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).