Commit 1f1829a
[Cygwin] Internal class in explicitly-instantiation-declarated template should be instantiated
In-code comment says "explicit instantiation decl of the outer class
doesn't affect the inner class" but this behavior seems MSVC
specific, mingw-gcc and cygwin-gcc does not.
Clang should honor gcc's behavior.
This change fixes std::string compatibilty and resolves strange link
error (statically linked), strange crash (dynamically linked) using
libstdc++ on Cygwin.
HACK! only change behavior for Cygwin, not MinGW, because linking to
libc++ relies on the old behavior, even though it differs from GCC.
Co-authored-by: Jeremy Drake <[email protected]>1 parent 4f6f617 commit 1f1829a
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4325 | 4325 | | |
4326 | 4326 | | |
4327 | 4327 | | |
| 4328 | + | |
4328 | 4329 | | |
4329 | 4330 | | |
4330 | 4331 | | |
| |||
0 commit comments