public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: santugi@dptmaths.ens-cachan.fr
To: gcc-gnats@gcc.gnu.org
Subject: c++/6659: segfault if constructor of a nested template class is decalared with a return argument
Date: Tue, 14 May 2002 11:36:00 -0000	[thread overview]
Message-ID: <20020514183515.20693.qmail@sources.redhat.com> (raw)


>Number:         6659
>Category:       c++
>Synopsis:       segfault if constructor of a nested template class is decalared with a return argument
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue May 14 11:36:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     santugi@dptmaths.ens-cachan.fr
>Release:        unknown-1.0
>Organization:
>Environment:
Freebsd 4.5
>Description:
If a template class contains a nested class. The illegal declaration of a 
constructor of the latter can cause a segfault if the constructor is said 
to have a return value.
>How-To-Repeat:
compile the following with option -c

template<class T>
class A{
  T a;
  class B{
      T b;
  };
};

template<class T>
A<T>::B& 
A<T>::B::B(const B& __B){} 
>Fix:

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


             reply	other threads:[~2002-05-14 18:36 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-14 11:36 santugi [this message]
2002-05-15  6:35 lerdsuwa
2003-01-22 22:14 bangerth

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=20020514183515.20693.qmail@sources.redhat.com \
    --to=santugi@dptmaths.ens-cachan.fr \
    --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).