[C++ Patch] PR 58846

Rainer Orth ro@CeBiTec.Uni-Bielefeld.DE
Tue Feb 4 09:55:00 GMT 2014


Paolo Carlini <paolo.carlini@oracle.com> writes:

> a very minor ICE on invalid regression, but since we explicitly allow for
> redeclarations (also see comments in declare_global_var) we may as well
> avoid crashing, at least in mainline. Tested x86_64-linux.

The test FAILs on Solaris which doesn't have __cxa_atexit:

FAIL: g++.dg/init/dso_handle2.C -std=c++98  (test for errors, line 10)
FAIL: g++.dg/init/dso_handle2.C -std=c++11  (test for errors, line 10)

Fixed like dso_handle1.C does by forcing -fuse-cxa-atexit.

Tested with the appropriate runtest invocations on i386-pc-solaris2.11
and x86_64-unknown-linux-gnu.  Ok for mainline?

	Rainer


2014-02-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

	* g++.dg/init/dso_handle2.C: Compile with -fuse-cxa-atexit.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: testsuite-dso_handle2.patch
Type: text/x-patch
Size: 489 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20140204/802531a1/attachment.bin>
-------------- next part --------------

-- 
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University


More information about the Gcc-patches mailing list