c++/9216: Segmentation fault on incorrect code (template-namespace related)

O.Kullmann@Swansea.ac.uk O.Kullmann@Swansea.ac.uk
Mon Jan 13 05:17:00 GMT 2003


>Number:         9216
>Category:       c++
>Synopsis:       Segmentation fault on incorrect code (template-namespace related)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-illegal-code
>Submitter-Id:   net
>Arrival-Date:   Tue Jan 07 04:46:01 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Oliver Kullmann
>Release:        gcc 3.2.1
>Organization:
>Environment:
Linux (Suse 8.0)
> g++ -v
Reading specs from /compsci/partition1/csoliver/GCC/gcc-3.2.1/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/specs
Configured with: /compsci/partition1/csoliver/GCC/gcc-3.2.1/configure --enable-threads=posix --enable-long-lo
ng --prefix=/compsci/partition1/csoliver/GCC/gcc-3.2.1 --with-local-prefix=/compsci/partition1/csoliver/GCC/I
nclude_3.2.1 --enable-languages=c,c++ --disable-nls --enable-shared
Thread model: posix
gcc version 3.2.1
>Description:
Error message:

> g++ Fehler.cpp
Fehler.cpp: In function `int main()':
Fehler.cpp:6: 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.

where Fehler.cpp is in How-to-Repeat.
>How-To-Repeat:
namespace N {
  template < typename T > class C : T {};
}

int main() {
 N::C();
}
>Fix:
not known
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the Gcc-bugs mailing list