This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: 4.7.2: not catching exceptions on Solaris 64bit?
- From: Dennis Clarke <dclarke at blastwave dot org>
- To: Carsten Aulbert <gcc-help at miyameca dot de>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Wed, 13 Feb 2013 08:48:37 -0500
- Subject: Re: 4.7.2: not catching exceptions on Solaris 64bit?
- References: <511B52B1.4060204@miyameca.de>
----- Original Message -----
From: Carsten Aulbert <gcc-help@miyameca.de>
Date: Wednesday, February 13, 2013 3:46 am
Subject: 4.7.2: not catching exceptions on Solaris 64bit?
To: gcc-help@gcc.gnu.org
> Hi
>
> a colleague of mine found something werid on Solaris 10 with a recent
> gcc instaleld via blastwave:
That gcc compiler has nothing to do with me or Blastwave. Sorry.
My builds work :
node002 $ cat -n test.cpp
1 #include <cstdlib>
2 #include <stdexcept>
3
4 int
5 main(int, char**)
6 {
7 try {
8 throw std::runtime_error("Some error");
9 }
10 catch(const std::exception &e )
11 {
12 exit( 0 );
13 }
14 exit( 1 );
15 }
node002 $ /usr/local/gcc4/bin/g++ --version
g++ (Blastwave.org Inc. Thu Nov 15 21:54:55 GMT 2012) 4.7.2
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
node002 $ /usr/local/gcc4/bin/g++ -m64 -Wl,-rpath=/usr/local/lib test.cpp
node002 $ file a.out
a.out: ELF 64-bit MSB executable SPARCV9 Version 1, dynamically linked, not stripped, no debugging information available
node002 $ ./a.out ; echo $?
0
Dennis Clarke
ps: if you want a pre-release tarball, just let me know