> Can someone confirm that this
>   http://codepad.org/I313t7BN
> compiled with
>   g++ -O3 test.cpp -o test
> gives a segfault when trying to run it via
>   ./test
same here:

11:14:33 [~/idownload]
cat test.cpp 
struct Vector {
  Vector() : x(0), y(0), z(0) { }  
  float x,y,z;
};

struct Foo { 
  int dummy; // commenting this out makes it run perfectly
  Vector array_of_vectors[4];
};

Foo foo;

int main() { }
11:14:35 [~/idownload]
g++ -O3 test.cpp -o test
11:14:54 [~/idownload]
./test 
Speicherzugriffsfehler
11:14:57 [~/idownload]
g++ --version
g++ (GCC) 4.3.1
Copyright (C) 2008 Free Software Foundation, Inc.
Dies ist freie Software; die Kopierbedingungen stehen in den Quellen. Es
gibt KEINE Garantie; auch nicht für MARKTGÄNGIGKEIT oder FÜR SPEZIELLE ZWECKE.

11:15:07 [~/idownload]
uname -a
Linux Sarah 2.6.25-ARCH #1 SMP PREEMPT Sat Jun 14 17:44:19 CEST 2008 x86_64
Intel(R) Core(TM)2 Quad CPU @ 2.40GHz GenuineIntel GNU/Linux 11:15:11
[~/idownload]


-- 
Gruß, Johannes
Täglich http://blog.hehejo.de und du fühlst dich gut.

http://cryptocd.eduforge.org/online_version

Attachment: signature.asc
Description: PGP signature

Reply via email to