This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/7754: ICE SIGSEGV on union with template parameter
- From: Detlef Vollmann <dv at vollmann dot ch>
- To: gcc-gnats at gcc dot gnu dot org
- Date: Thu, 29 Aug 2002 03:00:33 +0200
- Subject: c++/7754: ICE SIGSEGV on union with template parameter
>Number: 7754
>Category: c++
>Synopsis: ICE SIGSEGV on union with template parameter
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: ice-on-legal-code
>Submitter-Id: net
>Arrival-Date: Wed Aug 28 18:16:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: Detlef Vollmann
>Release: 3.3 20020828 (experimental)
>Organization:
vollmann engineering gmbh
>Environment:
System: Linux octo 2.4.18-xfs-1.1 #1 Mon Jul 1 05:12:32 MEST 2002 i686 unknown
Architecture: i686
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: /dwarf/pdsrc/gcc/cvs/gcc/configure --program-suffix=-test --prefix=/usr/local/gcc-test --enable-shared --enable-threads=posix --enable-version-specific-runtime-libs --enable-languages=c,c++
>Description:
Segmentation fault wrapped as ICE for a union with a member
whose type is a template parameter of surrounding function.
>How-To-Repeat:
gcc -c bug.cpp
>Fix:
bug.cpp:
template <typename T> void f(T const &t)
{
union { char c; T t_; }; // compile time check for T==POD
}
>Release-Note:
>Audit-Trail:
>Unformatted: