public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/13302] New: Putting a va_list in a struct causes seg fault
@ 2003-12-04 13:33 stuart dot menefy at st dot com
  2003-12-04 15:13 ` [Bug c++/13302] " bangerth at dealii dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: stuart dot menefy at st dot com @ 2003-12-04 13:33 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=13302


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2003-12-05 15:58 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-04 13:33 [Bug c++/13302] 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++/13302] " bangerth at dealii dot org
2003-12-04 15:15 ` bangerth at dealii dot org
2003-12-04 16:44 ` [Bug target/13302] " pinskia at gcc dot gnu dot org
2003-12-04 19:20 ` stuart dot menefy at st dot com
2003-12-04 19:45 ` [Bug target/13302] [3.3/3.4 Regression] " pinskia at gcc dot gnu dot org
2003-12-05 13:57 ` amylaar at gcc dot gnu dot org
2003-12-05 15:48 ` cvs-commit at gcc dot gnu dot org
2003-12-05 15:56 ` cvs-commit at gcc dot gnu dot org
2003-12-05 15:58 ` amylaar at gcc dot gnu 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).