This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/19317] [4.1 Regression] removing a temporary return value when we cannot
- From: "bernie at develer dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 May 2005 10:42:28 -0000
- Subject: [Bug c++/19317] [4.1 Regression] removing a temporary return value when we cannot
- References: <20050107191510.19317.mueller@kde.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From bernie at develer dot com 2005-05-19 10:42 -------
(In reply to comment #39)
> (In reply to comment #37)
>
> > Reducing a testcase isn't trivial, but I'll try.
>
> try to pass to the ./configure the kde_cv_val_gcc_visibility_bug=yes switch.
> rebuild and test artsd. it may help.
I ran the acinclude.m4 test manually, and it
links fine for me (altough the binary crashes
on startup).
$ cat < foo.cpp
/* http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19664 */
#include <string>
int some_function( void ) __attribute__ ((visibility("default")));
int some_function( void )
{
std::string s("blafasel");
return 0;
}
$ g++ -fPIC -fvisibility-inlines-hidden -O0 -shared foo.cpp -o foo
$ ./foo
Segmentation fault
> currently i have a gcc-4.0.1-20050514(+patches:19664,20218,v3)
> and artsd works fine without hacks.
I'll try to build with those patches, thanks.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19317