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]

objc/8496: Crash if an object is declared instead of a pointer to an object


>Number:         8496
>Category:       objc
>Synopsis:       Crash if an object is declared instead of a pointer to an object
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    unassigned
>State:          open
>Class:          ice-on-illegal-code
>Submitter-Id:   net
>Arrival-Date:   Thu Nov 07 18:06:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Lorenz Minder
>Release:        3.3 20020916 (experimental), also 3.1, 3.0.4 (Debian Package)
>Organization:
>Environment:
System: Linux fanzthesecond 2.4.18 #33 Thu Jul 18 04:56:44 CEST 2002 i686 unknown
Architecture: i686

	
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: ../gcc-20020916/configure --program-suffix=-xp --prefix=/usr/local --enable-languages=c,objc
>Description:
Declaring an object (rather than, what would be correct, a pointer to an
object) causes the compiler to crash when one tries to send a message
to that object. 

>How-To-Repeat:

Try to compile the following code:

@interface X {
}
@end

void xyz(X y)
{
	[y do_something];
}

A crash occurs:

crash_objc.m: In function `xyz':
crash_objc.m:7: internal compiler 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.
>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]