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()
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
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?
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
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
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.
: 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