Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ICU-22450 Disable the type_info workaround on newer versions of libstdc++ #2539

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion icu4c/source/common/unicode/std_string.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

// Workaround for a libstdc++ bug before libstdc++4.6 (2011).
// https://bugs.llvm.org/show_bug.cgi?id=13364
#if defined(__GLIBCXX__)
#if defined(__GLIBCXX__) && !defined(_GLIBCXX_RELEASE)
namespace std { class type_info; }
#endif
#include <string>
Expand Down
2 changes: 1 addition & 1 deletion icu4c/source/common/utypeinfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include <exception>
using std::exception;
#endif
#if defined(__GLIBCXX__)
#if defined(__GLIBCXX__) && !defined(_GLIBCXX_RELEASE)
namespace std { class type_info; } // WORKAROUND: http://llvm.org/bugs/show_bug.cgi?id=13364
#endif
#include <typeinfo> // for 'typeid' to work
Expand Down
2 changes: 1 addition & 1 deletion icu4c/source/io/unicode/ustream.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
* C++ I/O stream API.
*/

#if defined(__GLIBCXX__)
#if defined(__GLIBCXX__) && !defined(_GLIBCXX_RELEASE)
namespace std { class type_info; } // WORKAROUND: http://llvm.org/bugs/show_bug.cgi?id=13364
#endif

Expand Down
2 changes: 1 addition & 1 deletion icu4c/source/test/intltest/dcfmtest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#include <string.h>
#include <stdio.h>

#if defined(__GLIBCXX__)
#if defined(__GLIBCXX__) && !defined(_GLIBCXX_RELEASE)
namespace std { class type_info; } // WORKAROUND: http://llvm.org/bugs/show_bug.cgi?id=13364
#endif

Expand Down