Happens at least with 4.1 and 4.2. Maybe Andrew can find a C testcase?
(sid)88:[EMAIL PROTECTED]: ~] /usr/lib/gcc-snapshot/bin/gcc -x objective-c -O -c
sope-NGActiveSocket.m
sope-NGActiveSocket.m:18: warning: cannot find interface declaration for
'NGActiveSocket'
sope-NGActiveSocket.m:22: warning: '@end' missing in implementation context
sope-NGActiveSocket.m: In function '+[NGActiveSocket socketPair:inDomain:]':
sope-NGActiveSocket.m:21: internal compiler error: in expand_expr_real_1, at
expr.c:6932
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
(sid)89:[EMAIL PROTECTED]: ~] /usr/lib/gcc-snapshot/bin/gcc -x objective-c -c
sope-NGActiveSocket.m
sope-NGActiveSocket.m:18: warning: cannot find interface declaration for
'NGActiveSocket'
sope-NGActiveSocket.m:22: warning: '@end' missing in implementation context
(sid)90:[EMAIL PROTECTED]: ~] gcc-4.1 -x objective-c -O -c sope-NGActiveSocket.m
sope-NGActiveSocket.m:18: warning: cannot find interface declaration for
âNGActiveSocketâ
sope-NGActiveSocket.m:22: warning: [EMAIL PROTECTED] missing in implementation
context
sope-NGActiveSocket.m: In function â+[NGActiveSocket
socketPair:inDomain:]â:
sope-NGActiveSocket.m:21: internal compiler error: in expand_expr_real_1, at
expr.c:6763
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
(sid)91:[EMAIL PROTECTED]: ~]
(sid)91:[EMAIL PROTECTED]: ~] cat sope-NGActiveSocket.m
typedef unsigned char BOOL;
@protocol NSObject - (Class) class;
@end @ interface NSObject < NSObject >
@end typedef struct _NSRange
{
}
NSRange;
@interface NSException:NSObject
@end static inline BOOL
NGIsStreamErrorException (NSException * _exception)
{
}
@protocol NGSocketAddress < NSObject >
@end @ protocol NGSocket < NSObject > -(id < NGSocketAddress >) localAddress;
@end @ protocol NGSocketDomain < NSObject > -(id < NGSocketAddress >)
addressWithRepresentation:(void
*)
_data size:(unsigned int) _size;
@end @ implementation NGActiveSocket + (BOOL) socketPair:(id < NGSocket >[2])
_pair inDomain:(id < NGSocketDomain >) _domain
{
_pair[0] = (id) 0;
}
--
Summary: [4.1/4.2 Regression] ICE in expand_expr_real_1, at
expr.c:6932
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: tbm at cyrius dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29195