c++/9159: g++ faults when compiling "memberspace" declarations
bala@rentec.com
bala@rentec.com
Fri Jan 3 18:16:00 GMT 2003
>Number: 9159
>Category: c++
>Synopsis: g++ faults when compiling "memberspace" declarations
>Confidential: no
>Severity: critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Jan 03 10:16:01 PST 2003
>Closed-Date:
>Last-Modified:
>Originator: Bala Swaminathan/JoaquÃn M Lopez
>Release: unknown-1.0
>Organization:
>Environment:
UNIX/LINUX
>Description:
Please see bug report 9133.
JoaquÃn M Lopez has closed in on the problem from my original submission. Here is the gist of the problem:
// membspace.C
template <typename T>
class A {
class A1{} A1;
};
template <typename T>
class B: public A<T> {};
int main(void)
{
return 0;
}
//
booby:~/c++/bimap> alias g3
alias g3='/usr/local/products/gcc/3.2.1/bin/g++'
booby:~/c++/bimap> g3 -v
Reading specs from /usr/local/products/gcc/3.2.1/lib/gcc-lib/sparc-sun-solaris2.8/3.2.1/specs
Configured with: ../gcc-3.2.1/configure --with-gnu-as --with-as=/usr/local/products/binutils/2.11.2/bin/gnu-as --with-gnu-ld --with-ld=/usr/local/products/binutils/2.11.2/bin/gnu-ld --disable-nls --enable-languages=c,c++ --disable-libgcj --disable-shared --prefix=/usr/local/products/gcc/3.2.1
Thread model: posix
gcc version 3.2.1
booby:~/c++/bimap> g3 membspace.C
membspace.C:7: internal error: Segmentation Fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
>How-To-Repeat:
Compile the sampple code provided above (repeated here):
// membspace.C
template <typename T>
class A {
class A1{} A1;
};
template <typename T>
class B: public A<T> {};
int main(void)
{
return 0;
}
//
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the Gcc-prs
mailing list