This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ 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]

Re: C++11 const char * constructor overloads for exceptions


On 10/15/2012 10:23 PM, Benjamin De Kosnik wrote:
This little patch adds the C++11 const char * constructor overloads
for exceptions.
Seems like a good idea...

but, pick one:

+#ifdef __GXX_EXPERIMENTAL_CXX0X__
+    explicit logic_error(const char* __arg)
+    : logic_error(string(__arg)) { }
+#endif


or


+
+    # const char* ctors.
+    _ZNSt11logic_errorC1EPKc;
+    _ZNSt11logic_errorC2EPKc;

Ie, this should not need to be both exported and inlined.
Might as well inline it, and not export it.

-benjamin

I get ABI fails...

2 incompatible symbols
0
_ZNSt11logic_errorC1EPKc
std::logic_error::logic_error(char const*)
version status: incompatible
GLIBCXX_3.4
type: function
status: added


1 _ZNSt11logic_errorC2EPKc std::logic_error::logic_error(char const*) version status: incompatible GLIBCXX_3.4 type: function status: added



==== libstdc++-v3 check-abi Summary ====

# of added symbols:         32
# of missing symbols:         0
# of undesignated symbols:     0
# of incompatible symbols:     2

using: baseline_symbols.txt
FAIL: libstdc++-abi/abi_check
testcase /home/ed/gcc_tr2/libstdc++-v3/testsuite/libstdc++-abi/abi.exp completed in 10 seconds
Running /home/ed/gcc_tr2/libstdc++-v3/testsuite/libstdc++-dg/conformance.exp ...


I guess this gets outlined for some reason.  Is there a better fix for this?
I guess I could just add the two symbols?

Ed

Attachment: CL_cstring_stdexcept_ctors_5
Description: Text document

Attachment: patch_cstring_stdexcept_ctors_5
Description: Text document


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