c++/6659: segfault if constructor of a nested template class is decalared with a return argument
santugi@dptmaths.ens-cachan.fr
santugi@dptmaths.ens-cachan.fr
Tue May 14 11:36:00 GMT 2002
>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:
More information about the Gcc-bugs
mailing list