[Bug c++/81764] New: Visibility for explicitly instantiated template class get warned if it was implicitly instantiated

2017-08-07 Thread lanxingcan at gmail dot com
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: lanxingcan at gmail dot com Target Milestone: --- ```cpp template class g; template class __attribute((visibility("default"))) g { g()

[Bug c++/81855] New: [mingw-w64] dllexport-ed explicit template instantiation has no symbol in DLL when the compile unit has non-template symbol

2017-08-15 Thread lanxingcan at gmail dot com
Version: 7.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: lanxingcan at gmail dot com Target Milestone: --- I'm cross building a library for Windows, but encou

[Bug c++/81855] [mingw-w64] dllexport-ed explicit template instantiation has no symbol in DLL when the compile unit has non-template symbol

2017-08-15 Thread lanxingcan at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81855 --- Comment #1 from Xingcan Lan --- Update: Even if I seperate the them into two compile unit. and link them into one DLL together, symbols for `Template` is also missing. So maybe it's a bug of binutils?

[Bug c++/81855] [mingw-w64] dllexport-ed explicit template instantiation has no symbol in DLL in certain condition

2017-08-16 Thread lanxingcan at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81855 --- Comment #2 from Xingcan Lan --- Checked diassembly code and found that __declspec(dllexport) never applied to explicitly instantiated `Template`. If I change the code from `extern template struct __declspec(dllexport) Template;` to `extern

[Bug libstdc++/78805] New: std::vector::emplace_back is not exception safe.

2016-12-14 Thread lanxingcan at gmail dot com
Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: lanxingcan at gmail dot com Target Milestone: --- Consider the following code ```cpp #include #include #include class A { public: int id; A(int x, bool throws = false) : id(x

[Bug libstdc++/78805] std::vector::emplace_back is not exception safe.

2016-12-14 Thread lanxingcan at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78805 --- Comment #1 from Xingcan Lan --- In addition, this bug affects at least from GCC 4.8.x to GCC 6.x, earlier version of GCC was not yet tested.

[Bug libstdc++/60020] New: Considering backport regexp support to 4.8+

2014-01-31 Thread lanxingcan at gmail dot com
: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: lanxingcan at gmail dot com As GCC 4.8.1+ is already C++11 languages feature complete, it's pity that regex, a major part of C++11 library feature does not supported in 4.8.x serials. Any plan on backport regexp suppo