public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/13389] New: sizeof in template argument causes segmentation fault
@ 2003-12-12 13:55 heinlein at informatik dot uni-ulm dot de
  2003-12-12 14:27 ` [Bug c++/13389] sizeof in template:unimplemented: call_expr cannot be mangled due to a defect in the C++ ABI bangerth at dealii dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: heinlein at informatik dot uni-ulm dot de @ 2003-12-12 13:55 UTC (permalink / raw)
  To: gcc-bugs

ixtys$ uname -a
Linux ixtys 2.2.18 #1 Fri Jan 19 22:10:35 GMT 2001 i686 unknown
ixtys$ g++ -v
Reading specs from
/home/heinlein/soft/GCC/3.2/lib/gcc-lib/i686-pc-linux-gnu/3.2/specs
Configured with: ../gcc-3.2/configure --prefix=/home/heinlein/soft/GCC/3.2
Thread model: posix
gcc version 3.2
ixtys$ g++ -c bug.cxx -save-temps
bug.cxx: In function `int main()':
bug.cxx:13: internal error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
ixtys$ cat bug.ii
# 1 "bug.cxx"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "bug.cxx"
template <int i>
struct X {
    typedef int Z;
};

template <typename T>
T f (T) {}

template <typename T>
void g (T, typename X<sizeof f(T())>::Z) {}

int main () {
    g(1, 2);
}

-- 
           Summary: sizeof in template argument causes segmentation fault
           Product: gcc
           Version: 3.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: heinlein at informatik dot uni-ulm dot de
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13389


^ permalink raw reply	[flat|nested] 8+ messages in thread
[parent not found: <bug-13389-7526@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2009-04-09 20:29 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-12 13:55 [Bug c++/13389] New: sizeof in template argument causes segmentation fault heinlein at informatik dot uni-ulm dot de
2003-12-12 14:27 ` [Bug c++/13389] sizeof in template:unimplemented: call_expr cannot be mangled due to a defect in the C++ ABI bangerth at dealii dot org
2003-12-16 17:07 ` pinskia at gcc dot gnu dot org
2003-12-16 19:15 ` giovannibajo at libero dot it
2003-12-16 19:26 ` [Bug c++/13389] [ABI] " pinskia at gcc dot gnu dot org
2004-01-11 12:03 ` [Bug c++/13389] " giovannibajo at libero dot it
     [not found] <bug-13389-7526@http.gcc.gnu.org/bugzilla/>
2009-03-03 21:49 ` jason at gcc dot gnu dot org
2009-04-09 20:29 ` jason 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).