This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

c++/5032: ICE(Segmentation Fault) in compiler



>Number:         5032
>Category:       c++
>Synopsis:       ICE(Segmentation Fault) in compiler
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    unassigned
>State:          open
>Class:          ice-on-illegal-code
>Submitter-Id:   net
>Arrival-Date:   Thu Dec 06 01:46:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Konobeev Vladimir
>Release:        3.0.2
>Organization:
>Environment:
System: SunOS 5.8, Ultra-5_10
host: sparc-sun-solaris2.8
build: sparc-sun-solaris2.8
target: sparc-sun-solaris2.8
configured with: ../configure --with-as=/usr/local/bin/as --with-ld=/usr/local/bin/ld --enable-libgcj
>Description:
Segmentation fault in compiler when compiling file with syntax error (Test.cpp)
The fault is in 'cc1plus' compiler, file 'gcc/cp/class.c' line 5850,
It tries to access 'type->type.lang_specific' member which contains zero pointer.
>How-To-Repeat:
Command line:'gcc Test.cpp'
(It doesn't matter what compiler options are.)

Compiler output:
Test.cpp:4: 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.
Source file:

template< class T >
       class B
{
	typedef class T::A;
};
Preprocessed file Test.ii included.
>Fix:

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]