public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/13303] New: Putting a va_list in a struct causes seg fault
@ 2003-12-04 14:15 stuart dot menefy at st dot com
2003-12-04 15:13 ` [Bug c++/13303] " bangerth at dealii dot org
0 siblings, 1 reply; 2+ messages in thread
From: stuart dot menefy at st dot com @ 2003-12-04 14:15 UTC (permalink / raw)
To: gcc-bugs
This problem was found when building mozilla. Creating a struct which
contains a va_list element (which is actually a __builtin_va_list) causes
the C++ compiler to seg fault.
The problems is not seen when using the C compiler or compiling for sh3
(only sh4). It is preset in gcc 3.0.3, 3.2.1, 3.3.2 and 3.4 snapshot 20030222.
I suspect it was not present in gcc 2.95, but cannot confirm this.
To reproduce:
% /var/tmp/gcc-3.4-20031126/objdir/gcc/xgcc
-B/var/tmp/gcc-3.4-20031126/objdir/gcc/ -O0 nsTextFormatter.ii -m4 -c
nsTextFormatter.ii:4: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
% cat nsTextFormatter.ii
typedef __builtin_va_list __gnuc_va_list;
typedef __gnuc_va_list va_list;
struct NumArgState{
va_list ap;
};
--
Summary: Putting a va_list in a struct causes seg fault
Product: gcc
Version: 3.4
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: stuart dot menefy at st dot com
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: sh4-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13303
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug c++/13303] Putting a va_list in a struct causes seg fault
2003-12-04 14:15 [Bug c++/13303] New: Putting a va_list in a struct causes seg fault stuart dot menefy at st dot com
@ 2003-12-04 15:13 ` bangerth at dealii dot org
0 siblings, 0 replies; 2+ messages in thread
From: bangerth at dealii dot org @ 2003-12-04 15:13 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From bangerth at dealii dot org 2003-12-04 15:13 -------
Duplicate of 13302.
*** This bug has been marked as a duplicate of 13302 ***
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13303
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-12-04 15:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-04 14:15 [Bug c++/13303] New: Putting a va_list in a struct causes seg fault stuart dot menefy at st dot com
2003-12-04 15:13 ` [Bug c++/13303] " bangerth at dealii dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).