This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Bug: Segmentation fault


I wrote a program that is fine compiling by MS VC 7.1 or higher
and works correctly. It also is compiling by CodeWarior 8.0.
Unfortunately gcc says subj. :(

Source code you can find in attach.

gcc --version
  gcc (GCC) 3.3.5  (Gentoo Linux 3.3.5-r1, ssp-3.3.2-3, pie-8.7.7.1)
  Copyright (C) 2003 Free Software Foundation, Inc.

bash-2.05b$ uname -a
  Linux ziggurat 2.6.10-gentoo-r6with_mppe #6 Tue Mar 15 17:39:51 EET 2005 
  i686 AMD Athlon(tm)  AuthenticAMD GNU/Linux

dcc was compiled by command
  emerge gcc

program was compiled by command
  gcc 6.cpp

compiler output is
bash-2.05b$ gcc 6.cpp
loki/HierarchyGenerators.h: In instantiation of `Loki::GenLinearHierarchy<Loki:
Typelist<f<1>, Loki::Typelist<f<2>, Loki::NullType> >, Chain<List, i>::Functor,
Chain<Functors, 0>::Stub>':
6.cpp:50:   instantiated from `ChainWrapper<Loki::GenLinearHierarchy<Loki::Type
ist<f<1>, Loki::Typelist<f<2>, Loki::NullType> >, Chain<List, i>::Functor, Chai
<Functors, 0>::Stub> >'
6.cpp:71:   instantiated from `Loki::GenScatterHierarchy<Loki::GenLinearHierarc
y<Loki::Typelist<f<1>, Loki::Typelist<f<2>, Loki::NullType> >, Chain<List, i>::
unctor, Chain<Functors, 0>::Stub>, ChainWrapper>'
6.cpp:71:   instantiated from `Loki::GenScatterHierarchy<Loki::Typelist<Loki::G
nLinearHierarchy<Loki::Typelist<f<1>, Loki::Typelist<f<2>, Loki::NullType> >, C
ain<List, i>::Functor, Chain<Functors, 0>::Stub>, Loki::Typelist<Loki::GenLinea
Hierarchy<Loki::Typelist<f<2>, Loki::Typelist<f<1>, Loki::NullType> >, Chain<Li
t, i>::Functor, Chain<Functors, 1>::Stub>, Loki::NullType> >, ChainWrapper>'
6.cpp:71:   instantiated from here
loki/HierarchyGenerators.h:222: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugs.gentoo.org/> for instructions.
Preprocessed source stored into /tmp/ccW13tKm.out file, please attach this to y
ur bugreport.

-- 
Best Regards,
Antonio

Attachment: code.tar.bz2
Description: BZip2 compressed data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]