This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
objc/8496: Crash if an object is declared instead of a pointer to an object
- From: lminder at gmx dot net
- To: gcc-gnats at gcc dot gnu dot org
- Date: Fri, 08 Nov 2002 02:56:31 +0100
- Subject: 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: