Thread View: gnu.g++.bug
2 messages
2 total messages
Started by Tom Vijlbrief
Tue, 03 Oct 1989 13:46
Extern union declaration crashes g++1.35
Author: Tom Vijlbrief
Date: Tue, 03 Oct 1989 13:46
Date: Tue, 03 Oct 1989 13:46
34 lines
1902 bytes
1902 bytes
The following program crashes g++1.35
================externcrash.cc=============
extern "C" {
/* structure used to specify fields in a 32-bit pixel */
union fbunit {
unsigned int packed; /* whole-sale deal */
struct {
unsigned int A:8; /* unused, for now */
unsigned int B:8; /* blue channel */
unsigned int G:8; /* green channel */
unsigned int R:8; /* red channel */
} channel; /* access per channel */
};
};
===============================
g++ -c -v externcrash.cc
g++ version 1.35.0
/usr/local/lib/gcc-cpp -+ -v -undef -D__GNU__ -D__GNUG__ -D__cplusplus -Dmc68000 -Dsun -Dunix -D__mc68000__ -D__sun__ -D__unix__ -D__HAVE_68881__ -Dmc68020 externcrash.cc /tmp/cca08984.cpp
GNU CPP version 1.35
/usr/local/lib/gcc-cc1plus /tmp/cca08984.cpp -quiet -dumpbase externcrash.cc -noreg -version -o /tmp/cca08984.s
GNU C++ version 1.35.0 (68k, MIT syntax) compiled by GNU C version 1.35.
externcrash.cc:11: Segmentation violation
g++: Program cc1plus got fatal signal 11.
==============================
===============================================================================
Tom Vijlbrief
TNO Institute for Perception
P.O. Box 23 Phone: +31 34 63 562 11
3769 ZG Soesterberg E-mail: tnosoes!tom@mcvax.cwi.nl
The Netherlands or: uunet!mcvax!tnosoes!tom
===============================================================================
Re: Extern union declaration crashes g++1.35
Author: Doug Schmidt
Date: Wed, 04 Oct 1989 18:51
Date: Wed, 04 Oct 1989 18:51
24 lines
1555 bytes
1555 bytes
In article <486@tnosoes.UUCP>, tom@tnosoes (Tom Vijlbrief) writes:
>The following program crashes g++1.35
>================externcrash.cc=============
>extern "C" {
>/* structure used to specify fields in a 32-bit pixel */
>union fbunit {
> unsigned int packed; /* whole-sale deal */
> struct {
> unsigned int A:8; /* unused, for now */
> unsigned int B:8; /* blue channel */
> unsigned int G:8; /* green channel */
> unsigned int R:8; /* red channel */
> } channel; /* access per channel */
>};
>};
This problem is fixed in 1.36.0-
Doug
--
schmidt@ics.uci.edu (ARPA) | Per me si va nella citta' dolente.
office: (714) 856-4043 | Per me si va nell'eterno dolore.
| Per me si va tra la perduta gente.
| Lasciate ogni speranza o voi ch'entrate.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads