This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/6659: segfault if constructor of a nested template class is decalared with a return argument
- From: santugi at dptmaths dot ens-cachan dot fr
- To: gcc-gnats at gcc dot gnu dot org
- Date: 14 May 2002 18:35:15 -0000
- Subject: c++/6659: segfault if constructor of a nested template class is decalared with a return argument
- Reply-to: santugi at dptmaths dot ens-cachan dot fr
>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: